From f931185ee095cc44d20bdcfe8d42cb6c67b98d0a Mon Sep 17 00:00:00 2001 From: BJRambo Date: Thu, 3 Sep 2020 23:26:13 +0900 Subject: [PATCH] Fix the default object error --- modules/communication/communication.model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/communication/communication.model.php b/modules/communication/communication.model.php index 8d8a57527..b31d5d954 100644 --- a/modules/communication/communication.model.php +++ b/modules/communication/communication.model.php @@ -26,6 +26,10 @@ class communicationModel extends communication { $oModuleModel = getModel('module'); $config = $oModuleModel->getModuleConfig('communication'); + if(!$config) + { + $config = new stdClass(); + } if(!$config->skin) {