Alexander Nicolaysen Sørnes : objectManager: only access filter object if it exists

Chris Morgan cmorgan at winehq.org
Tue Jun 3 18:26:09 CDT 2008


Module: appdb
Branch: master
Commit: abe33cfe7d3b7fcf44669668279e55dca11198c8
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=abe33cfe7d3b7fcf44669668279e55dca11198c8

Author: Alexander Nicolaysen Sørnes <alex at 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




More information about the wine-cvs mailing list