Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /var/alternc/bureau/class/m_err.php on line 99 CORRIGE

This commit is contained in:
Benjamin Sonntag 2008-06-26 09:19:06 +00:00
parent c20775231e
commit 5f689df89c
1 changed files with 5 additions and 3 deletions

View File

@ -96,9 +96,11 @@ class m_err {
$str = _("err_".$this->clsid."_".$this->error)."\n"; $str = _("err_".$this->clsid."_".$this->error)."\n";
} }
$args = $this->param; $args = $this->param;
array_unshift($args, $str); if (is_array($args)) {
$msg = call_user_func_array("sprintf", $args); array_unshift($args, $str);
return $msg; $msg = call_user_func_array("sprintf", $args);
return $msg;
} else return "";
} }
/** /**