From ebe28cd884d14a22efae86a07c10b1cc5c820035 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 28 Jan 2021 22:46:52 +0900 Subject: [PATCH] Fix warning in debug class if config doesn't exist --- common/framework/debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/debug.php b/common/framework/debug.php index b292ecf13..8dbe785c0 100644 --- a/common/framework/debug.php +++ b/common/framework/debug.php @@ -718,7 +718,7 @@ class Debug { return self::$_enabled; } - if (!self::$_config['enabled']) + if (!is_array(self::$_config) || !self::$_config['enabled']) { return self::$_enabled = false; }