From 0e557f2d0df2c539540a2e50d583af2d40a93638 Mon Sep 17 00:00:00 2001 From: coderkun Date: Fri, 4 Apr 2014 01:28:22 +0200 Subject: [PATCH] remove PHP>=5.5 specifics --- models/QuestgroupsModel.inc | 2 +- views/html/menu/index.tpl | 2 +- views/html/seminarymenu/index.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/QuestgroupsModel.inc b/models/QuestgroupsModel.inc index 33a7d1b0..3e2ced21 100644 --- a/models/QuestgroupsModel.inc +++ b/models/QuestgroupsModel.inc @@ -264,7 +264,7 @@ } // Get next Quests - while(!is_null($currentQuest) && !empty($nextQuests = $this->Quests->getNextQuests($currentQuest['id']))) + while(!is_null($currentQuest) && $nextQuests = $this->Quests->getNextQuests($currentQuest['id']) && !empty($nextQuests)) { // Get choosed Quest $currentQuest = null; diff --git a/views/html/menu/index.tpl b/views/html/menu/index.tpl index 393e4747..2c3299b4 100644 --- a/views/html/menu/index.tpl +++ b/views/html/menu/index.tpl @@ -1,6 +1,6 @@
  • The Legend of Z
  • -
  • + 0) : ?>
  • diff --git a/views/html/seminarymenu/index.tpl b/views/html/seminarymenu/index.tpl index fa6d4457..ee29969f 100644 --- a/views/html/seminarymenu/index.tpl +++ b/views/html/seminarymenu/index.tpl @@ -1,6 +1,6 @@
  • -
  • + 0) : ?>