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:
parent
c20775231e
commit
5f689df89c
|
@ -96,9 +96,11 @@ class m_err {
|
|||
$str = _("err_".$this->clsid."_".$this->error)."\n";
|
||||
}
|
||||
$args = $this->param;
|
||||
array_unshift($args, $str);
|
||||
$msg = call_user_func_array("sprintf", $args);
|
||||
return $msg;
|
||||
if (is_array($args)) {
|
||||
array_unshift($args, $str);
|
||||
$msg = call_user_func_array("sprintf", $args);
|
||||
return $msg;
|
||||
} else return "";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue