浏览代码

Update note.php

fr69400 3 年之前
父节点
当前提交
1b2f0fc155
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      htdocs/product/note.php

+ 5 - 4
htdocs/product/note.php

@@ -70,11 +70,12 @@ $hookmanager->initHooks(array('productnote'));
  * 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))
-	include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not includ_once
+}
+if (empty($reshook)){
+	include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once
+}
 
 
 /*