Fix: Error nor reported

This commit is contained in:
Laurent Destailleur 2014-06-12 15:32:25 +02:00
parent bb8516274e
commit 1ba02185e5

View File

@ -195,7 +195,8 @@ else if ($action == 'confirm_validate' && $confirm == 'yes' && $user->rights->pr
else
{
$langs->load("errors");
setEventMessage($langs->trans($object->error), 'errors');
if (count($object->errors) > 0) setEventMessage($object->errors, 'errors');
else setEventMessage($langs->trans($object->error), 'errors');
}
}