unitialized variable in easymod installer
Status: Beta
Brought to you by:
wgeric
version 0.3, file easymod_install.php, function _sql(...)
there is a line
$error_ary['sql'][] = ( is_array($sql) ) ? $sql[$i] : $sql;
$i is never initialized and therefore evaluates as
zero, so the line still works. But please fix this, it
may suddenly break in later PHP versions.
Logged In: YES
user_id=779036
It's true that $i is not initialized, but I'm not sure that
$i automatically evaluates to 0, as uninitialized variables
are NULL. Either way, I'm pretty sure it's already broken,
so it can't really "break in later PHP versions".
Logged In: YES
user_id=657440
I've changed it to 0 in CVS. I'm not sure if any arrays are
sent to that function so it probably won't affect anything.