summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-03-14 20:10:15 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-03-14 20:10:15 +0100
commit47196182e53ed25a73ba6e5129675df99df5b671 (patch)
tree885ad6a5e80a5c76fc7b6fc6b23fbf27aedcdc47 /app/views
parentd2c20395c0aa74f2e1c039b56dfda618415be617 (diff)
Fix bug #25 mais le code ne me convient pas. Le bug #28 devra corriger ce soucis
Diffstat (limited to 'app/views')
-rw-r--r--app/views/index/index.phtml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index 6ecbfd72f..7733c6313 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -1,6 +1,5 @@
<?php $this->partial ('aside_flux'); ?>
-<?php $items = $this->entryPaginator->items (true); ?>
<div class="nav_menu">
<a class="btn" href="<?php echo Url::display (array ('c' => 'feed', 'a' => 'actualize')); ?>"><i class="icon refresh"></i></a>
@@ -13,8 +12,10 @@
<?php } ?>
</div>
-<?php if (!empty ($items)) { ?>
-
+<?php
+if (isset ($this->entryPaginator)) {
+ $items = $this->entryPaginator->items (true);
+?>
<div id="stream">
<?php
$display_today = true;