Associative arrays don't work properly when used with add() when the fields are in the wrong order. To combat the problem, I wrote a little patch. This will let you use associative arrays or normal arrays with add().
The patch in question
Logged In: YES user_id=73968
Dang -- forgot to check that checkbox when I uploaded the file last time.
Strike two. There's a bug with the patch.
Change this line if (isset($arr[$data[0]])) to this one if (isset($arr2[$data[0]]))
Log in to post a comment.
The patch in question
Logged In: YES
user_id=73968
Dang -- forgot to check that checkbox when I uploaded the
file last time.
Logged In: YES
user_id=73968
Strike two. There's a bug with the patch.
Change this line
if (isset($arr[$data[0]]))
to this one
if (isset($arr2[$data[0]]))