summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/Users/feed.html.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/Users/feed.html.php b/views/Users/feed.html.php
index 29d8695..142fe7a 100644
--- a/views/Users/feed.html.php
+++ b/views/Users/feed.html.php
@@ -18,7 +18,9 @@
<?= $this->form->submit('Post!', array('class' => 'button', 'style' => 'float:right')); ?>
<?= $this->form->end(); ?>
<br class ="cl">
- <?php foreach($feed as $post) { ?>
+
+ <?php if(isset($feed)): ?>
+ <?php foreach($feed as $post): ?>
<div class="grid_4"><img class="inlinepic" src="/img/about.jpg" alt="" /></div>
<div class="grid_8">
<h4><?= $post->username ?></h4>
@@ -38,7 +40,10 @@
</ul>
</div>
<br class="cl">
- <?php } ?>
+ <?php endforeach; ?>
+ <?php else: ?>
+ <p>Woops! There's no posts yet. Make some friends and get the party started!</p>
+ <?php endif; ?>
</div>
<br class="cl" />
<br class="cl" /> \ No newline at end of file