diff --git a/htdocs/resource/note.php b/htdocs/resource/note.php index 01e020a8617..99b298e5db2 100644 --- a/htdocs/resource/note.php +++ b/htdocs/resource/note.php @@ -56,11 +56,12 @@ $permissionnote = $user->rights->resource->write; // Used by the include of acti */ $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 +} /*