projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c39c9
)
rebuild the task list if unserialization fails
author
Chuck Hagenbuch
<chuck@horde.org>
Wed, 22 Jul 2009 14:44:02 +0000
(10:44 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Wed, 22 Jul 2009 14:44:02 +0000
(10:44 -0400)
framework/LoginTasks/lib/Horde/LoginTasks.php
patch
|
blob
|
history
diff --git
a/framework/LoginTasks/lib/Horde/LoginTasks.php
b/framework/LoginTasks/lib/Horde/LoginTasks.php
index
10b69e6
..
6dbbc64
100644
(file)
--- a/
framework/LoginTasks/lib/Horde/LoginTasks.php
+++ b/
framework/LoginTasks/lib/Horde/LoginTasks.php
@@
-94,8
+94,9
@@
class Horde_LoginTasks
if (Horde_Auth::getAuth()) {
/* Retrieves a cached tasklist or make sure one is created. */
if (isset($_SESSION['horde_logintasks'][$app])) {
- $this->_tasklist = unserialize($_SESSION['horde_logintasks'][$app]);
- } else {
+ $this->_tasklist = @unserialize($_SESSION['horde_logintasks'][$app]);
+ }
+ if ($this->_tasklist === null || $this->_tasklist === false) {
$this->_createTaskList($url);
$this->_init = true;
}