Skip to content
Snippets Groups Projects
Commit 22c6efea authored by Peter Rotich's avatar Peter Rotich
Browse files

Do variable lookup if delegated classes returns empty on thurder calls.

parent ec205c06
Branches
Tags
No related merge requests found
......@@ -26,11 +26,14 @@ abstract class TicketUser {
function __call($name, $args) {
global $cfg;
$rv = null;
if($this->user && is_callable(array($this->user, $name)))
return $args
$rv = $args
? call_user_func_array(array($this->user, $name), $args)
: call_user_func(array($this->user, $name));
if ($rv) return $rv;
$tag = substr($name, 3);
switch (strtolower($tag)) {
case 'ticket_link':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment