Fixing style errors.

This commit is contained in:
stickler-ci 2022-08-14 13:49:28 +00:00
parent 7a22e6f339
commit 6c1289382c

View File

@ -674,7 +674,7 @@ if (empty($reshook)) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
} }
if ($object->error) { if ($object->error) {
// check again to prevent translation issue, // check again to prevent translation issue,
// as error may have been cleared in hook function // as error may have been cleared in hook function
setEventMessages($langs->trans($object->error), null, 'errors'); setEventMessages($langs->trans($object->error), null, 'errors');
} }