Skip to content

Commit

Permalink
Fixes #4496
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur authored and mattab committed Jan 30, 2014
1 parent 1e4e508 commit 27e59ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/Annotations/AnnotationList.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ private function getAnnotationsForSite()
$serialized = Option::get($optionName);

if ($serialized !== false) {
$result[$id] = unserialize($serialized);
$result[$id] = @unserialize($serialized);
if(empty($result[$id])) {
// in case unserialize failed
$result[$id] = array();
}
} else {
$result[$id] = array();
}
Expand Down

1 comment on commit 27e59ba

@kkbtech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, resolved issue :)

Please sign in to comment.