From c97d947087768b0bf5a4328aef811438753dcc1c Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 27 Feb 2014 01:37:47 +0000 Subject: [PATCH] whoops --- modules/goodreads/goodreads.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/goodreads/goodreads.js b/modules/goodreads/goodreads.js index 10fb7c2..e0e9225 100644 --- a/modules/goodreads/goodreads.js +++ b/modules/goodreads/goodreads.js @@ -69,6 +69,7 @@ var goodreads = function(dbot) { if(!_.isUndefined(body) && !err) { parseString(body, function(err, result) { if(result && _.has(result, 'GoodreadsResponse')) { + var shelves = {}; result = result['GoodreadsResponse'].user[0].user_shelves[0].user_shelf; _.each(result, function(shelf) { shelves[shelf.name[0]] = shelf.book_count[0]['_'];