Skip to content

Commit

Permalink
Assign function return value to a separate variable in Twiggy lib
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundask committed Apr 4, 2012
1 parent 603876a commit 106de17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sparks/Twiggy/0.8.3/libraries/Twiggy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 106de17

Please sign in to comment.