Skip to content

Commit

Permalink
Fix an issue where PHP would throw fatal error when calling func_get_…
Browse files Browse the repository at this point in the history
…args() as a param in another function
  • Loading branch information
edmundask committed Apr 5, 2012
1 parent 3d0ff2a commit c4926bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/Twiggy.php
Expand Up @@ -149,10 +149,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 c4926bd

Please sign in to comment.