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;