FIX remove not initialized variable

This commit is contained in:
VESSILLER 2022-11-16 11:05:39 +01:00
parent 6e33d1e2b1
commit 10154cc357

View File

@ -511,7 +511,7 @@ if (empty($reshook)) {
$mesgs = array_merge($mesgs, $object->errors); $mesgs = array_merge($mesgs, $object->errors);
} }
setEventMessages(null, $mesgs, 'errors'); setEventMessages('', $mesgs, 'errors');
$action = "create"; $action = "create";
} }
@ -599,7 +599,7 @@ if (empty($reshook)) {
$mesgs = array_merge($mesgs, $object->errors); $mesgs = array_merge($mesgs, $object->errors);
} }
setEventMessages($mesg, $mesgs, 'errors'); setEventMessages('', $mesgs, 'errors');
$action = "edit"; $action = "edit";
} else { } else {
$action = "edit"; $action = "edit";