Support » Plugin: Favorites » Undefined variable: site_id

  • dspaete


    Hi hi,

    Undefined variable: site_id in ./wp-content/plugins/favorites/app/Listeners/FavoriteList.php on line 54

    This cannot work properly as there is no $site_id defined before accessing it:

    	private function getList()
    		global $blog_id;
    		$site_id = ( is_multisite() && is_null($site_id) ) ? $blog_id : $site_id;

    Maybe $site_id should be passed as a parameter or made global.

  • The topic ‘Undefined variable: site_id’ is closed to new replies.