mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 11:49:56 +03:00
fix single_insert when a field is null (#477)
fix #449 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
This commit is contained in:
parent
dde2426bbf
commit
9b9ec600ea
2 changed files with 2 additions and 2 deletions
|
@ -594,7 +594,7 @@ INSERT INTO '.$table_name.'
|
|||
$is_first = false;
|
||||
}
|
||||
|
||||
if ($value === '')
|
||||
if ($value === '' || is_null($value))
|
||||
{
|
||||
$query .= 'NULL';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue