Menu

#16 Warning: wrong datatype ... during bug modify

open
nobody
None
5
2003-08-21
2003-08-21
No

during update, user briefly sees
Warning: wrong datatype for second argument in call to
array_key_exists in
/var/www/html/bugin/inc/modify.inc.php on line 35

The message only displays for a split second, so the
only information that the users understands is that
something was wrong.

The fix (I think) is to add the is_array call to
inc/modify.inc.php line 35

so
if ( array_key_exists($key,
$bugDatabase->lists['field'])) {
becomes
if (is_array($bugDatabase->lists['field'] ) &&
array_key_exists($key, $bugDatabase->lists['field'])) {

Discussion


Log in to post a comment.

MongoDB Logo MongoDB