From 1817e92bbf57a898fd001dabfc05ad9dfa08fe6f Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 18 Aug 2011 06:49:01 +0000 Subject: [PATCH] Fix: missing hook errors --- htdocs/societe/soc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index ca9fdd9cd55..96a8c83109b 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -25,7 +25,7 @@ * \file htdocs/societe/soc.php * \ingroup societe * \brief Third party card page - * \version $Id: soc.php,v 1.136 2011/08/17 19:43:19 hregis Exp $ + * \version $Id: soc.php,v 1.137 2011/08/18 06:49:01 hregis Exp $ */ require("../main.inc.php"); @@ -89,7 +89,7 @@ $hookmanager->callHooks(array('thirdpartycard','thirdparty_extrafields')); $parameters=array('socid'=>$socid); $reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks - +$error=$hookmanager->error; $errors=$hookmanager->errors; // ---------- start deprecated. Use hook to hook actions. // If canvas actions are defined, because on url, or because contact was created with canvas feature on, we use the canvas feature. @@ -1973,5 +1973,5 @@ else $db->close(); -llxFooter('$Date: 2011/08/17 19:43:19 $ - $Revision: 1.136 $'); +llxFooter('$Date: 2011/08/18 06:49:01 $ - $Revision: 1.137 $'); ?> \ No newline at end of file