From 63ab83235b3c39fefc049d93fe74aae0022c1b9b Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 26 Apr 2023 21:47:39 +0200 Subject: [PATCH] fix nullsafe warning --- _define.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_define.php b/_define.php index 8d7eba3..cc771f0 100644 --- a/_define.php +++ b/_define.php @@ -10,7 +10,7 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH')) { +if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { return; } @@ -22,7 +22,7 @@ $this->registerModule( [ 'requires' => [['core', '2.26']], 'permissions' => dcCore::app()->auth->makePermissions([ - dcAuth::PERMISSION_CONTENT_ADMIN, + dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), 'type' => 'plugin', 'support' => 'http://forum.dotclear.org/viewtopic.php?id=48345',