projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f95917
)
Don't save OB if session doesn't exist.
author
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 5 Dec 2008 20:14:53 +0000
(13:14 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 5 Dec 2008 20:15:17 +0000
(13:15 -0700)
imp/lib/IMAP.php
patch
|
blob
|
history
diff --git
a/imp/lib/IMAP.php
b/imp/lib/IMAP.php
index
944be60
..
1ed289d
100644
(file)
--- a/
imp/lib/IMAP.php
+++ b/
imp/lib/IMAP.php
@@
-61,7
+61,9
@@
class IMP_IMAP
/* Only need to serialize object once a second. When we do serialize,
* make sure we login in order to ensure we have done the necessary
* initialization. */
- if (!isset($_SESSION['imp']['imap_ob']) && $this->ob) {
+ if ($this->ob &&
+ isset($_SESSION['imp']) &&
+ !isset($_SESSION['imp']['imap_ob'])) {
$this->ob->login();
$_SESSION['imp']['imap_ob'] = serialize($this->ob);
}