1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

PHP8 fix.

This commit is contained in:
Cameron
2021-01-21 10:29:29 -08:00
parent f055b49d91
commit 9f7d3d2c78

View File

@@ -3063,8 +3063,13 @@ class themeHandler
$this->id = $name;
$this->loadThemeConfig();
$className = get_class($this->themeConfigObj);
$className = '';
if(!empty($this->themeConfigObj))
{
$className = get_class($this->themeConfigObj);
}
if($className === 'theme_config') // new way. 2.1.4
{
$themeConfig = e107::getThemeConfig($name);