Skip to content

Commit

Permalink
Encrypted array might not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 8, 2015
1 parent fd2d298 commit d848d86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions framework/Core/lib/Horde/Session.php
Expand Up @@ -238,9 +238,11 @@ public function regenerate()
{
/* Load old encrypted data. */
$encrypted = array();
foreach ($this->_data[self::ENCRYPTED] as $app => $val) {
foreach (array_keys($val) as $val2) {
$encrypted[$app][$val2] = $this->get($app, $val2);
if (!empty($this->_data[self::ENCRYPTED])) {
foreach ($this->_data[self::ENCRYPTED] as $app => $val) {
foreach (array_keys($val) as $val2) {
$encrypted[$app][$val2] = $this->get($app, $val2);
}
}
}

Expand Down

0 comments on commit d848d86

Please sign in to comment.