aboutsummaryrefslogtreecommitdiff
path: root/t/front.t
diff options
context:
space:
mode:
Diffstat (limited to 't/front.t')
-rw-r--r--t/front.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/front.t b/t/front.t
index fcdecdb..fd9f46c 100644
--- a/t/front.t
+++ b/t/front.t
@@ -2,8 +2,8 @@
<h1><%= site.name %></h1>
<h3>Latest posts</h3>
<table border="1">
- <% while(post = getpost(stmt, 0)){
- user = getuser(byid("users", post->user), 1); %>
+ <% while(post = nextpost(stmt)){
+ user = getuser(byid("users", post->user)); %>
<tr>
<td><a href="?post=<% printf("%d", post->id); %>"><%= post->subject %></a></td>
<td><a href="?user=<% printf("%d", post->user); %>"><%= user->name %></a></td>