From 700713abcf0c32b31c43315af5dbc817437052ed Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 31 Aug 2013 17:48:19 +0200 Subject: [PATCH] Don't try to use undefined response --- couchpotato/core/plugins/suggestion/static/suggest.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/couchpotato/core/plugins/suggestion/static/suggest.js b/couchpotato/core/plugins/suggestion/static/suggest.js index f287588a..16feca97 100644 --- a/couchpotato/core/plugins/suggestion/static/suggest.js +++ b/couchpotato/core/plugins/suggestion/static/suggest.js @@ -43,6 +43,8 @@ var SuggestList = new Class({ fill: function(json){ var self = this; + + if(!json) return; Object.each(json.suggestions, function(movie){