correct usage of array_unshift

This commit is contained in:
Antoine Beaupré 2008-04-24 18:23:55 +00:00
parent a843e1200d
commit a2f598a593
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ class m_err {
} else { } else {
$str = _("err_".$this->clsid."_".$this->error)."\n"; $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); $msg = call_user_func_array("sprintf", $args);
return $msg; return $msg;
} }