diff --git a/inc/feed.php b/inc/feed.php index a734e86..ddd6fea 100644 --- a/inc/feed.php +++ b/inc/feed.php @@ -45,7 +45,7 @@ class Feed extends PhpObject { $this->iFeedId = $iFeedId; $asFeed = $this->getFeed(); $this->sRefFeedId = $asFeed['ref_feed_id']; - $this->iLastUpdate = strtotime($asFeed['last_update']); + $this->iLastUpdate = $asFeed['last_update']=='0000-00-00 00:00:00'?0:strtotime($asFeed['last_update']); } public function createFeedId($oProjectId) { diff --git a/masks/project.html b/masks/project.html index 9534f1f..9ceb9bb 100644 --- a/masks/project.html +++ b/masks/project.html @@ -125,7 +125,7 @@ function isSettingsPanelOpen() { } function updateSettingsPanel(asLastUpdate) { - var $LastUpdate = self.tmp('$Settings').find('#last_update').toggle(self.vars(['project', 'mode']) == self.consts.modes.blog); + var $LastUpdate = self.tmp('$Settings').find('#last_update').toggle(self.vars(['project', 'mode']) == self.consts.modes.blog && asLastUpdate.unix_time > 0); $LastUpdate.find('abbr') .attr('title', asLastUpdate.formatted_time) .text(oSpot.lang('last_update')+' '+asLastUpdate.relative_time);