fixed update available

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:34:55 +02:00
1 parent b8758138b3
commit de96708156
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ class Map {
* @return bool
*/
public function updateAvailable() {
if($this->lastUpdate < $this->mx->updated || $this->uid != $this->mx->uid) {
if($this->mx != null && ($this->lastUpdate < $this->mx->updated || $this->uid != $this->mx->uid)) {
return true;
} else {
return false;
+1 -1
View File
@@ -431,7 +431,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
* @var Map $map
*/
foreach($mapList as $map) {
var_dump($map->updateAvailable());
if(!isset($pageFrame)) {
$pageFrame = new Frame();
$frame->add($pageFrame);