"sys_edit = now()");
foreach ($mask['edit'] as $field => $info) {
- if ($info['required'] === true && empty($_POST[$field]))
+ if ($info['required'] === true && !strlen($_POST[$field]))
return array('error' => sprintf('Pflichtfeld %s nicht ausgefüllt', $info['name']),
'errormsg' => 'Pflichtfelder nicht ausgefüllt');
$values = array("'".pg_escape_string($_SESSION['sys']['login'])."'", 'now()');
foreach ($mask['edit'] as $field => $info) {
- if ($info['required'] === true && empty($_POST[$field]))
+ if ($info['required'] === true && !strlen($_POST[$field]))
return array('error' => sprintf('Pflichtfeld %s nicht ausgefüllt', $info['name']),
'errormsg' => 'Pflichtfelder nicht ausgefüllt');