From 4397da144ff8a8463e6ee66c9b2006bc4036049d Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 12 Dec 2013 16:07:15 -0500 Subject: [PATCH] fixes crash introduced @1021615848e49da3434f00cfdb6fb79ab5990b47 --- src/routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api.js b/src/routes/api.js index 68ee19967f..0635188db3 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -47,7 +47,7 @@ var path = require('path'), }); function iterator(category, callback) { - categories.getRecentReplies(category.cid, 2, function (posts) { + categories.getRecentReplies(category.cid, 2, function (err, posts) { category.posts = posts; category.post_count = posts.length > 2 ? 2 : posts.length; callback(null);