Error message

Notice: Trying to get property of non-object in vh_search_page() (line 22 of /var/www/vhosts/vigohospitality.turismodevigo.org/httpdocs/sites/vigohospitality/modules/vh_search/vh_search_page.inc).