mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Recognize empty as != 0
This commit is contained in:
parent
be3dd73dcf
commit
7b804f41a4
@ -298,8 +298,8 @@ class importexport_import_csv implements importexport_iface_import_record { //,
|
||||
}
|
||||
}
|
||||
foreach((array)$fields['select-bool'] as $name) {
|
||||
if($record[$name] != null) {
|
||||
$record[$name] = ($record[$name] == lang('Yes') ? 1 : 0);
|
||||
if($record[$name] != null && $record[$name] != '') {
|
||||
$record[$name] = ($record[$name] == lang('Yes') || $record[$name] == '1' ? 1 : 0);
|
||||
}
|
||||
}
|
||||
foreach((array)$fields['date-time'] as $name) {
|
||||
|
Loading…
Reference in New Issue
Block a user