projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b47277
)
Guess you can't unset a static member variable - use null instead
author
Michael M Slusarz
<slusarz@curecanti.org>
Mon, 3 Aug 2009 18:41:11 +0000
(12:41 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Mon, 3 Aug 2009 22:24:53 +0000
(16:24 -0600)
imp/lib/Search.php
patch
|
blob
|
history
diff --git
a/imp/lib/Search.php
b/imp/lib/Search.php
index
6e638ce
..
3c2225e
100644
(file)
--- 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
;
}
/**