From 2e4b45488f7e7c43190fc7f32f1a3d3b2d0ca81a Mon Sep 17 00:00:00 2001 From: fr69400 <82267780+fr69400@users.noreply.github.com> Date: Sun, 11 Jul 2021 09:50:42 +0200 Subject: [PATCH] Update note.php --- htdocs/projet/note.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/projet/note.php b/htdocs/projet/note.php index 3d13aa47afe..d7a2af62718 100644 --- a/htdocs/projet/note.php +++ b/htdocs/projet/note.php @@ -57,11 +57,12 @@ $permissionnote = $user->rights->projet->creer; // Used by the include of action */ $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 +} /*