From f980f305e29053c72bfe51f2978b91a723d4d8d0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 26 Feb 2011 02:45:20 +0000 Subject: [PATCH] Fix: error --- htdocs/lib/functions.lib.php | 2 +- htdocs/societe/class/societe.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 8f524770f26..81b20e9a6a2 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -3457,7 +3457,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok') { global $langs; - $ret = 0; + $ret = ''; if (is_array($mesgarray) && sizeof($mesgarray)) { diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 100b7da06eb..6f44160242f 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2225,7 +2225,7 @@ class Societe extends CommonObject else { // $this->error deja positionne - dol_syslog("Societe::create_from_member - 2 - ".$this->error, LOG_ERR); + dol_syslog("Societe::create_from_member - 2 - ".$this->error." - ".join(',',$this->errors), LOG_ERR); $this->db->rollback(); return $result;