diff --git a/htdocs/adherents/note.php b/htdocs/adherents/note.php index e26654a07ee..70642612483 100644 --- a/htdocs/adherents/note.php +++ b/htdocs/adherents/note.php @@ -77,12 +77,12 @@ $result = restrictedArea($user, 'adherent', $object->id, '', '', 'socid', 'rowid * 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 - +} /*