Fix fatal error on canvas
This commit is contained in:
parent
33c2684ce2
commit
7a7d296533
@ -151,7 +151,7 @@ class Canvas
|
||||
public function assign_values(&$action = 'view', $id = 0, $ref = '')
|
||||
{
|
||||
// phpcs:enable
|
||||
if (method_exists($this->control, 'assign_values')) {
|
||||
if (is_object($this->control) && method_exists($this->control, 'assign_values')) {
|
||||
$this->control->assign_values($action, $id, $ref);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user