mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-16 19:50:44 +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
7b2a82a771
commit
fb31d08aba
@ -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