correct usage of array_unshift
This commit is contained in:
parent
a843e1200d
commit
a2f598a593
|
@ -95,7 +95,8 @@ class m_err {
|
|||
} else {
|
||||
$str = _("err_".$this->clsid."_".$this->error)."\n";
|
||||
}
|
||||
$args = array_unshift($this->param, $str);
|
||||
$args = $this->param;
|
||||
array_unshift($args, $str);
|
||||
$msg = call_user_func_array("sprintf", $args);
|
||||
return $msg;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue