Alexander Nicolaysen Sørnes : objectManager: only access filter object if it exists
Module: appdb Branch: master Commit: abe33cfe7d3b7fcf44669668279e55dca11198c8 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=abe33cfe7d3b7fcf446696682... Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Tue Jun 3 11:46:23 2008 +0200 objectManager: only access filter object if it exists --- include/objectManager.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/objectManager.php b/include/objectManager.php index cec6fac..1b8fb4c 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -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
participants (1)
-
Chris Morgan