mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
PHP8 fix.
This commit is contained in:
@@ -3063,8 +3063,13 @@ class themeHandler
|
|||||||
|
|
||||||
$this->id = $name;
|
$this->id = $name;
|
||||||
$this->loadThemeConfig();
|
$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
|
if($className === 'theme_config') // new way. 2.1.4
|
||||||
{
|
{
|
||||||
$themeConfig = e107::getThemeConfig($name);
|
$themeConfig = e107::getThemeConfig($name);
|
||||||
|
Reference in New Issue
Block a user