diff --git a/htdocs/workstation/workstation_note.php b/htdocs/workstation/workstation_note.php index 2f96263f54f..cd5a75ce896 100755 --- a/htdocs/workstation/workstation_note.php +++ b/htdocs/workstation/workstation_note.php @@ -69,11 +69,12 @@ restrictedArea($user, $object->element, $object->id, $object->table_element, 'wo * Actions */ $reshook = $hookmanager->executeHooks('doActions', array(), $object, $action); // Note that $action and $object may have been modified by some hooks -if ($reshook < 0) +if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); - -if (empty($reshook)) +} +if (empty($reshook)){ include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once +} /*