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) {
|
||||
@@ -152,7 +152,7 @@ class Feed extends PhpObject {
|
||||
$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;
|
||||
|
||||
@@ -31,6 +31,7 @@ class Map extends PhpObject {
|
||||
}
|
||||
|
||||
public function getMapUrl($sCodeName, $asParams) {
|
||||
$asParams['token'] = $this->asMaps[$sCodeName]['token'];
|
||||
return self::populateParams($this->asMaps[$sCodeName]['pattern'], $asParams);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user