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.
InsertItemAt bug?
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:
line 3 of that should look like this:
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
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
0
This discussion has been closed.
Comments