From: Michael M Slusarz Date: Mon, 3 Aug 2009 18:41:11 +0000 (-0600) Subject: Guess you can't unset a static member variable - use null instead X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=777fdb7871afe69547511c432a74b7d54e074db7;p=horde.git Guess you can't unset a static member variable - use null instead --- 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; } /**