Fix update email spot position image link
This commit is contained in:
@@ -140,7 +140,7 @@ class Feed extends PhpObject {
|
||||
public function getLastMessageId($asConstraints=array()) {
|
||||
|
||||
$asMessages = $this->getMessages($asConstraints);
|
||||
return end($asMessages)[Db::getId(self::MSG_TABLE)];
|
||||
return end($asMessages)[Db::getId(self::MSG_TABLE)] ?? 0;
|
||||
}
|
||||
|
||||
public function checkUpdateFeed($sProjectMode) {
|
||||
@@ -151,8 +151,8 @@ class Feed extends PhpObject {
|
||||
$oLastUpdate = new \DateTime('@'.$this->iLastUpdate);
|
||||
$oNow = new \DateTime('now');
|
||||
$iSecDiff = $oNow->getTimestamp() - $oLastUpdate->getTimestamp();
|
||||
|
||||
if($iSecDiff > self::FEED_MAX_REFRESH && !Settings::DEBUG) $bNewMsg = $this->updateFeed();
|
||||
|
||||
if($iSecDiff > self::FEED_MAX_REFRESH) $bNewMsg = $this->updateFeed();
|
||||
}
|
||||
|
||||
return $bNewMsg;
|
||||
|
||||
Reference in New Issue
Block a user