From a2f598a593b9629d7bf1ff45a0d6c44010c3bfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 24 Apr 2008 18:23:55 +0000 Subject: [PATCH] correct usage of array_unshift --- bureau/class/m_err.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_err.php b/bureau/class/m_err.php index 34100771..74a8637f 100644 --- a/bureau/class/m_err.php +++ b/bureau/class/m_err.php @@ -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; }