summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts')
-rw-r--r--application/views/scripts/event/index.phtml13
1 files changed, 7 insertions, 6 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index d35f7c8..ee2d182 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -6,13 +6,14 @@
<div class='listelement'>
<?php
if(count($this->eventlist)==0)
-echo "There are no events" ?>
-<?php foreach ($this->eventlist as $pool => $poolEvents):
- if(count($poolEvents)==0)
- break;
+ echo "There are no events";
+else
+ foreach ($this->eventlist as $pool => $poolEvents):
+ if(count($poolEvents)==0)
+ break;
?>
<h2><?php echo $pool; ?></h2>
- <?php foreach ($poolEvents as $event): ?>
+ <?php foreach ($poolEvents as $event): ?>
<div class='element'>
<div class='content'>
<div class='actions'>
@@ -71,8 +72,8 @@ echo "There are no events" ?>
</div>
</div>
<div class='clear'></div>
+ <?php endforeach ?>
<?php endforeach ?>
-<?php endforeach ?>
</div>
<br />
<br /> \ No newline at end of file