Browse Source

Don't get last of empty list

pull/460/merge
Ruud 13 years ago
parent
commit
ef8dfc082c
  1. 3
      couchpotato/core/notifications/core/static/notification.js

3
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

Loading…
Cancel
Save