mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-13 16:59:35 +01:00
fix column_data_explode or update $col => array() gives SQL error
writing it now as NULL (or "" if column is NOT NULL)
This commit is contained in:
parent
36e9984be3
commit
86444c5dff
@ -1567,7 +1567,7 @@ class Db
|
||||
$maxlength = in_array($column_definitions[$col]['type'], array('varchar','ascii')) ? $column_definitions[$col]['precision'] : null;
|
||||
}
|
||||
// dont use IN ( ), if there's only one value, it's slower for MySQL
|
||||
if (is_array($data) && count($data) == 1)
|
||||
if (is_array($data) && count($data) <= 1)
|
||||
{
|
||||
$data = array_shift($data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user