PHP 5.4 reduce error of Create default object.

This commit is contained in:
BJRambo 2014-06-22 22:10:44 +09:00
parent 38b3fd2ce5
commit eec20ea827
8 changed files with 22 additions and 4 deletions

View file

@ -48,6 +48,7 @@ class communicationAdminModel extends communication
$oModuleModel = getModel('module');
$communication_config = $oModuleModel->getModuleConfig('communication');
if(!is_object($communication_config)) $communication_config = new stdClass;
if(!$communication_config->colorset)
{
$communication_config->colorset = "white";