summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/EventController.php2
-rw-r--r--application/views/scripts/event/index.phtml7
2 files changed, 5 insertions, 4 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index dc25fbd..5801052 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -95,7 +95,7 @@ class EventController extends Zend_Controller_Action
$eventcategory = new Application_Model_Eventcategory();
$this->eventcategoryMapper->find($event['category'], $eventcategory);
$event['category'] = $eventcategory->getTitle();
- $eventlist[$poollist[$event['pbs_poolID']]->getTitle()][] = $event;
+ $eventlist[$event['pbs_poolID']][] = $event;
}
}
$params = $this->getRequest()->getParams();
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 4f93671..60f5a33 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -43,9 +43,10 @@ if(count($this->eventlist)>0) {
?>
<?php
- foreach ($this->eventlist as $pool => $poolEvents): ?>
- <div id='pool<?php echo $poolEvents[0]['pbs_poolID'] ?>' style='display:none;' >
- <h2><?php echo $pool; ?></h2>
+ foreach ($this->poollist as $pool):
+ $poolEvents = $this->eventlist[$pool->getID()]; ?>
+ <div id='pool<?php echo $pool->getID(); ?>' style='display:none;' >
+ <h2><?php echo $pool->getTitle(); ?></h2>
<?php if(count($poolEvents)==0) {
echo "This Pool hasn't events yet";
break;