objectManager: only access filter object if it exists

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-06-03 11:46:23 +02:00
committed by Chris Morgan
parent 4bf0bb6a27
commit abe33cfe7d

View File

@@ -302,7 +302,7 @@ class ObjectManager
/* did we get any entries? */
if(!$hResult || query_num_rows($hResult) == 0)
{
if($this->oFilters->getFilterCount())
if($this->oFilters && $this->oFilters->getFilterCount())
{
echo '<center>No matches found</center>';
} else