diff --git a/couchpotato/core/notifications/core/static/notification.js b/couchpotato/core/notifications/core/static/notification.js index 4cf71e0..d11b640 100644 --- a/couchpotato/core/notifications/core/static/notification.js +++ b/couchpotato/core/notifications/core/static/notification.js @@ -136,7 +136,8 @@ var NotificationBase = new Class({ App.fireEvent(result.type, result) }) - self.last_id = json.result.getLast().message_id + if(json.result.length > 0) + self.last_id = json.result.getLast().message_id } // Restart poll