Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

InsertItemAt bug?

edited August 2005 in Vanilla 1.0 Help
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

Comments

  • Options
    hey mark, did you see this? should i add it to the wiki?
  • Options
    if the bug isn't added to the wiki then yes please add it.
This discussion has been closed.