To avoid warnings when strlen() is called on the array containing chosen values for set field
This commit is contained in:
@@ -68,13 +68,13 @@ if (false !== $possibly_uploaded_val) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// $key contains the md5() of the fieldname
|
// $key contains the md5() of the fieldname
|
||||||
if (0 === strlen($val) && $type != 'protected') {
|
if ($type != 'protected' && $type != 'set' && 0 === strlen($val)) {
|
||||||
// best way to avoid problems in strict mode (works also in non-strict mode)
|
// best way to avoid problems in strict mode (works also in non-strict mode)
|
||||||
if (isset($me_auto_increment) && isset($me_auto_increment[$key])) {
|
if (isset($me_auto_increment) && isset($me_auto_increment[$key])) {
|
||||||
$val = 'NULL';
|
$val = 'NULL';
|
||||||
} else {
|
} else {
|
||||||
$val = "''";
|
$val = "''";
|
||||||
}
|
}
|
||||||
} elseif ($type == 'set') {
|
} elseif ($type == 'set') {
|
||||||
if (! empty($_REQUEST['fields']['multi_edit'][$rownumber][$key])) {
|
if (! empty($_REQUEST['fields']['multi_edit'][$rownumber][$key])) {
|
||||||
$val = implode(',', $_REQUEST['fields']['multi_edit'][$rownumber][$key]);
|
$val = implode(',', $_REQUEST['fields']['multi_edit'][$rownumber][$key]);
|
||||||
|
Reference in New Issue
Block a user