diff --git a/core/control/Controller.php b/core/control/Controller.php index f6a8baa01..e34d3c471 100644 --- a/core/control/Controller.php +++ b/core/control/Controller.php @@ -581,7 +581,7 @@ class Controller extends ViewableData { } } - if($access === null || (sizeof($accessParts) > 1 && $accessParts[0] === $accessParts[1])) { + if($access === null || (isset($accessParts[1]) && $accessParts[0] === $accessParts[1])) { // user_error("Deprecated: please define static \$allowed_actions on your Controllers for security purposes", E_USER_NOTICE); return true; }