Skip to content

Commit

Permalink
Fix serialization of boolean false
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 6, 2013
1 parent 4ad819e commit ee1acbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Pack/lib/Horde/Pack/Driver/Serialize.php
Expand Up @@ -42,7 +42,7 @@ public function pack($data)
public function unpack($data)
{
$out = @unserialize($data);
if (($out !== false) || ($out == serialize(false))) {
if (($out !== false) || ($data == serialize(false))) {
return $out;
}

Expand Down

0 comments on commit ee1acbd

Please sign in to comment.