diff --git a/src/Extensions/ControllerCSPExtension.php b/src/Extensions/ControllerCSPExtension.php index e5b59a3..b2773a0 100644 --- a/src/Extensions/ControllerCSPExtension.php +++ b/src/Extensions/ControllerCSPExtension.php @@ -98,7 +98,7 @@ public static function getInlineCSS() */ public function onBeforeInit() { - if (!self::$isTesting || !DB::is_active() || !ClassInfo::hasTable('Member') || Director::is_cli()) { + if (self::$isTesting || !DB::is_active() || !ClassInfo::hasTable('Member') || Director::is_cli()) { return; } /** @var ContentController $owner */