From 106de1751b048a7687e8556a9d49746f0dc34933 Mon Sep 17 00:00:00 2001 From: Edmundas Kondrasovas Date: Wed, 4 Apr 2012 21:41:13 +0300 Subject: [PATCH] Assign function return value to a separate variable in Twiggy lib --- sparks/Twiggy/0.8.3/libraries/Twiggy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sparks/Twiggy/0.8.3/libraries/Twiggy.php b/sparks/Twiggy/0.8.3/libraries/Twiggy.php index 2f1cd27..9e6938b 100644 --- a/sparks/Twiggy/0.8.3/libraries/Twiggy.php +++ b/sparks/Twiggy/0.8.3/libraries/Twiggy.php @@ -148,10 +148,12 @@ public function title() { if(func_num_args() > 0) { + $args = func_get_args(); + // If at least one parameter is passed in to this method, // call append() to either set the title or append additional // string data to it. - call_user_func_array(array($this, 'append'), func_get_args()); + call_user_func_array(array($this, 'append'), $args); } return $this;