Skip to content

Commit

Permalink
Removed duplicate count condition xibosignage/xibo#1506
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMis committed May 4, 2018
1 parent 68c44a8 commit a54bc53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Widget/NotificationView.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ public function getModifiedDate($displayId)
]);

// Get the release date from the notification returned
if (count($notifications) > 0) {
$widgetModifiedDt = (count($notifications) > 0) ? $notifications[0]->releaseDt : $this->getDate()->parse($this->widget->modifiedDt, 'U');
}
$widgetModifiedDt = (count($notifications) > 0) ? $notifications[0]->releaseDt : $widgetModifiedDt;

return $widgetModifiedDt;
}
Expand Down

0 comments on commit a54bc53

Please sign in to comment.