Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthordknowles
    • CommentTimeAug 15th 2005 edited
     # 1
    Okay, I had this long thing typed out on my bug and what I was doing to cause it, but then I figured out how to fix it. But it's still a bug.

    In Utility.Control.class.php, the InsertItemAt() function looks like this:


    function InsertItemAt(&$Collection, $Item, $Position) {
    if (array_key_exists($Position, $Collection)) {
    $this->InsertItemAt($Collection[$Position], $Position+1);
    }
    $Collection[$Position] = $Item;
    }


    line 3 of that should look like this:

    $this->InsertItemAt($Collection, $Collection[$Position], $Position+1);


    otherwise, it goes all crazy and gives error messages like this:

    Warning: Missing argument 3 for insertitemat() in /Users/dknowles/Sites/vanilla/library/Utility.Control.class.php on line 38
    • CommentAuthordknowles
    • CommentTimeAug 29th 2005
     # 2
    hey mark, did you see this? should i add it to the wiki?
    • CommentAuthorjonezy
    • CommentTimeAug 29th 2005
     # 3
    if the bug isn't added to the wiki then yes please add it.
Add your comments
    Username Password
  • Format comments as