php致命错误:Can';t在functions.php的写上下文中使用函数返回值

php致命错误:Can';t在functions.php的写上下文中使用函数返回值,php,Php,当尝试应用主题时,在此行中出现此php致命错误 case('homeimage_texts'): if(!empty(Params::getParam('homeimage'))){ foreach(Params::getParam('homeimage',false,false,false) as $key => $value){ osc_set_preference

当尝试应用主题时,在此行中出现此php致命错误

case('homeimage_texts'):

                if(!empty(Params::getParam('homeimage'))){
                    foreach(Params::getParam('homeimage',false,false,false) as $key => $value){
                        osc_set_preference($key,trim($value),'osclasswizards_theme');
                    }
                }
                osc_add_flash_ok_message(__('Banner settings updated correctly', OSCLASSWIZARDS_THEME_FOLDER), 'admin');

                osc_redirect_to(osc_admin_render_theme_url('oc-content/themes/'.OSCLASSWIZARDS_THEME_FOLDER.'/admin/settings.php#banner'));
            break;

这看起来像是PHP版本的问题。如果您使用的是php5.3或更低版本,您可能会收到此错误消息。

empty()
会在php5.5之前接受一个变量
Params::getParam('homeimage')
不是变量。解决方案是什么?