diff --git a/htdocs/reception/note.php b/htdocs/reception/note.php index d9962a9ef18..10124a8361b 100644 --- a/htdocs/reception/note.php +++ b/htdocs/reception/note.php @@ -93,11 +93,12 @@ if ($origin == 'reception') { */ $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 +} /*