No warning

This commit is contained in:
Laurent Destailleur 2020-08-16 23:14:53 +02:00
parent 4c0785e996
commit 657e6a2037

View File

@ -115,7 +115,7 @@ if ($action == 'add') {
}
else dol_print_error($db);
if (! $arrayofexistingboxid[$boxid['value']]) {
if (empty($arrayofexistingboxid[$boxid['value']])) {
$sql = "INSERT INTO ".MAIN_DB_PREFIX."boxes (";
$sql .= "box_id, position, box_order, fk_user, entity";
$sql .= ") values (";