fixed a bug when no posts.

master
Victor De la Rocha 2008-10-25 17:45:54 +00:00
parent d4f4e72049
commit f976025030
2 changed files with 126 additions and 123 deletions

View File

@ -200,7 +200,7 @@ $theme = new themes;
$theme->set('pagination',$p->getPagination());
} else {
$template->renderizaEtiqueta("No posts in this tumblelog.", "div","error");
$theme->set('error','No posts in this tumblelog.');
}
} else {
$register = $tumble->getPost($id_post);

View File

@ -30,6 +30,9 @@
</div>
{/if}
{if {$error}}
<div class="error">{$error}</div>
{else}
{block {$rows} as {$row}}
<div class="date">
{$row.Date_Added}
@ -156,7 +159,7 @@
{else}
{pagination}
{/if}
{/if}
</div>
<div id="footer">
subscribe via <a href="{URL_Tumble}/rss.php">rss</a> &nbsp;/&nbsp;