From d01e9f249845646f6966d1d02ee554419a1c0e6c Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Fri, 20 Dec 2013 16:02:16 +0000 Subject: [PATCH] Add authtoken routine Add variable replacer callback --- include/class.collaborator.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/class.collaborator.php b/include/class.collaborator.php index bf823dacd..c55b9f4e6 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() { -- GitLab