Guess you can't unset a static member variable - use null instead
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 3 Aug 2009 18:41:11 +0000 (12:41 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 3 Aug 2009 22:24:53 +0000 (16:24 -0600)
imp/lib/Search.php

index 6e638ce..3c2225e 100644 (file)
@@ -74,7 +74,7 @@ class IMP_Search
      *
      * @var array
      */
-    static protected $_vfolder;
+    static protected $_vfolder = null;
 
     /**
      * Constructor.
@@ -280,7 +280,7 @@ class IMP_Search
      */
     protected function _getVFolderList()
     {
-        if (isset(self::$_vfolder)) {
+        if (!is_null(self::$_vfolder)) {
             return self::$_vfolder;
         }
 
@@ -306,7 +306,7 @@ class IMP_Search
     protected function _saveVFolderList($vfolder)
     {
         $GLOBALS['prefs']->setValue('vfolder', serialize($vfolder));
-        unset(self::$_vfolder);
+        self::$_vfolder = null;
     }
 
     /**