From 777fdb7871afe69547511c432a74b7d54e074db7 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 3 Aug 2009 12:41:11 -0600 Subject: [PATCH] Guess you can't unset a static member variable - use null instead --- imp/lib/Search.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/lib/Search.php b/imp/lib/Search.php index 6e638ce35..3c2225e15 100644 --- a/imp/lib/Search.php +++ b/imp/lib/Search.php @@ -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; } /** -- 2.11.0