summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/admin/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index f1e17e8..630796a 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -698,7 +698,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) {
<span class="active">Pending</span>
</div>`
- for i := len(posts); i >= 0; i-- {
+ for i := len(posts) - 1; i >= 0; i-- {
err := json.Unmarshal(posts[i], &p)
if err != nil {
log.Println("Error unmarshal json into", t, err, posts[i])