Bug #9313: Fix logintask confirmation
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 21 Oct 2010 01:22:43 +0000 (19:22 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 21 Oct 2010 01:22:43 +0000 (19:22 -0600)
Session data type might change - if it changes from array/object to
scalar, remove the typehint declaration stored in the session.

Possibly fixes Bug #9324
Possibly fixes Bug #9325

framework/Core/lib/Horde/Session.php

index 989ff06..5a5d3a4 100644 (file)
@@ -345,6 +345,8 @@ class Horde_Session implements ArrayAccess
                 $value = lzf_compress($value);
             }
             $_SESSION[self::SERIALIZED][$ob->key] = 'j';
+        } else {
+            unset($_SESSION[self::SERIALIZED][$ob->key]);
         }
 
         $_SESSION[$ob->app][$ob->name] = $value;