fixed a bug when no posts.
parent
d4f4e72049
commit
f976025030
|
|
@ -200,7 +200,7 @@ $theme = new themes;
|
||||||
|
|
||||||
$theme->set('pagination',$p->getPagination());
|
$theme->set('pagination',$p->getPagination());
|
||||||
} else {
|
} else {
|
||||||
$template->renderizaEtiqueta("No posts in this tumblelog.", "div","error");
|
$theme->set('error','No posts in this tumblelog.');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$register = $tumble->getPost($id_post);
|
$register = $tumble->getPost($id_post);
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{if {$error}}
|
||||||
|
<div class="error">{$error}</div>
|
||||||
|
{else}
|
||||||
{block {$rows} as {$row}}
|
{block {$rows} as {$row}}
|
||||||
<div class="date">
|
<div class="date">
|
||||||
{$row.Date_Added}
|
{$row.Date_Added}
|
||||||
|
|
@ -156,7 +159,7 @@
|
||||||
{else}
|
{else}
|
||||||
{pagination}
|
{pagination}
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
subscribe via <a href="{URL_Tumble}/rss.php">rss</a> /
|
subscribe via <a href="{URL_Tumble}/rss.php">rss</a> /
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue