From 179f7841f1ca1faba1ea857255f03da374cb1a4f Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 10 Jul 2015 15:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E6=88=91=E7=9B=B8=E5=85=B3500?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/activity_notifys_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/activity_notifys_controller.rb b/app/controllers/activity_notifys_controller.rb index ad9818fcc..06f3ff86d 100644 --- a/app/controllers/activity_notifys_controller.rb +++ b/app/controllers/activity_notifys_controller.rb @@ -22,6 +22,9 @@ class ActivityNotifysController < ApplicationController list = query.order('is_read,id desc').limit(limit).offset(@obj_pages.offset).all(); events=[]; for item in list + if item.activity.nil? + next + end event = item.activity; event.set_notify_id(item.id) event.set_notify_is_read(item.is_read)