Fixed a bug for PHP < 5.3.0 (used func_get_arg as argument, which does not work on older PHP versions)

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2011-06-16 20:23:59 +02:00
parent 3800f31823
commit 093ebfa457

View File

@@ -119,7 +119,8 @@ class linker
# Overwrite $this->args with parameters of this function (if necessary)
if(func_num_args() == 1 && is_array(func_get_arg(0)))
{
$this->args = array_merge($this->args, func_get_arg(0));
$arguments = func_get_arg(0);
$this->args = array_merge($this->args, $arguments);
}
# temporary until frontcontroller exists