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";
|
$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 "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue