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

@ -18,6 +18,7 @@ class messageMobile extends messageView
// Get configurations (using module model object)
$oModuleModel = getModel('module');
$config = $oModuleModel->getModuleConfig('message');
if(!is_object($config)) $config = new stdClass;
if(!$config->mskin) $config->mskin = 'default';
// Set the template path
$template_path = sprintf('%sm.skins/%s', $this->module_path, $config->mskin);