diff --git a/views_php.module b/views_php.module index 94606b3..0db24be 100644 --- a/views_php.module +++ b/views_php.module @@ -31,7 +31,8 @@ function views_php_check_access($php_access, $view_name, $display_id, $account = } ob_start(); - $access = (bool) $function[$view_name . ':' . $display_id]->getClosure()($view_name, $display_id, $account); + $closure = $function[$view_name . ':' . $display_id]->getClosure(); + $access = (bool) $closure($view_name, $display_id, $account); ob_end_clean(); return $access; }