Skip to content
Browse files

InsightDAO: Avoid error if precached insight is not set/hasn't been c…

…ached at time of call
  • Loading branch information...
1 parent 281eb7d commit 0d3815e34fbfb9661a570ee5cf6e24f339696d0f @ginatrapani ginatrapani committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 webapp/_lib/dao/class.InsightMySQLDAO.php
View
2 webapp/_lib/dao/class.InsightMySQLDAO.php
@@ -55,7 +55,7 @@ public function doesInsightExist($slug, $instance_id) {
public function getPreCachedInsightData($slug, $instance_id, $date) {
$insight = self::getInsight($slug, $instance_id, $date);
- if ($insight->related_data != '') {
+ if (isset($insight->related_data) && $insight->related_data != '') {
return unserialize($insight->related_data);
} else {
return null;

0 comments on commit 0d3815e

Please sign in to comment.
Something went wrong with that request. Please try again.