objectManager: only access filter object if it exists
This commit is contained in:
committed by
Chris Morgan
parent
4bf0bb6a27
commit
abe33cfe7d
@@ -302,7 +302,7 @@ class ObjectManager
|
|||||||
/* did we get any entries? */
|
/* did we get any entries? */
|
||||||
if(!$hResult || query_num_rows($hResult) == 0)
|
if(!$hResult || query_num_rows($hResult) == 0)
|
||||||
{
|
{
|
||||||
if($this->oFilters->getFilterCount())
|
if($this->oFilters && $this->oFilters->getFilterCount())
|
||||||
{
|
{
|
||||||
echo '<center>No matches found</center>';
|
echo '<center>No matches found</center>';
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user