fix __call to actually return the value
parent
2dfa6d6bae
commit
945949ebc0
|
@ -36,7 +36,7 @@ class Monitor {
|
|||
} // end function __construct
|
||||
public function __call( $fn, array $args){
|
||||
if(isset($this->{$fn})){
|
||||
return $fn;
|
||||
return $this->{$fn};
|
||||
#array_unshift($args, $this);
|
||||
#call_user_func_array( $this->{$fn}, $args);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue