diff --git a/include/class.collaborator.php b/include/class.collaborator.php index bf823dacdb366279ec88b5de9657843283f72ba9..c55b9f4e6511e36b69ac18dca09a3ad0e4934848 100644 --- a/include/class.collaborator.php +++ b/include/class.collaborator.php @@ -46,12 +46,11 @@ class Collaborator { function __call($name, $args) { if(!($user=$this->getUser()) || !method_exists($user, $name)) - return null; + return false; - if($args) - return call_user_func_array(array($user, $name), $args); - - return call_user_func(array($user, $name)); + return $args + ? call_user_func_array(array($user, $name), $args) + : call_user_func(array($user, $name)); } function __toString() {