It was the exact same loop all over again

This commit is contained in:
Mikael Nordfeldth 2015-01-18 14:27:42 +01:00
parent 3b9fd25787
commit 03cba8fc0c

View File

@ -110,10 +110,8 @@ class ApiQvitterNotificationsAction extends ApiPrivateAuthAction
'is_seen'=>$notification->is_seen
);
}
}
// mark as seen
foreach($this->notifications as $notification) {
// mark as seen
if($notification->is_seen == 0) {
$notification->is_seen = 1;
$notification->update();