summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/event')
-rw-r--r--application/views/scripts/event/index.phtml10
1 files changed, 5 insertions, 5 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 38fec17..aa090de 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -95,13 +95,13 @@ if(count($this->eventlist)>0) {
?>
<?php
- 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) {
+ foreach ($this->poollist as $pool):?>
+ <div id='pool<?php echo $pool->getID(); ?>' style='display:none;' >
+ <h2><?php echo $pool->getTitle(); ?></h2>
+ <?php if(!isset($this->eventlist[$pool->getID()])) {
echo "This Pool hasn't events yet";
} else { ?>
+ <?php $poolEvents = $this->eventlist[$pool->getID()]; ?>
<?php foreach ($poolEvents as $event): ?>
<div class='element'>
<div class='content'>