File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,10 @@ static function getAllForUser($user) {
93
93
$ item ['created ' ] = $ notify ->created ;
94
94
95
95
$ other = Profile::staticGet ('id ' , $ notify ->from_user_id );
96
- if ($ other == false )
96
+ if ($ other == false ) {
97
+ $ notify ->delete ();
97
98
continue ;
99
+ }
98
100
$ item ['user ' ] = array (
99
101
'id ' => $ other ->id ,
100
102
'nickname ' => $ other ->nickname ,
@@ -108,6 +110,7 @@ static function getAllForUser($user) {
108
110
$ notice = Notice::staticGet ('id ' , $ notify ->arg );
109
111
if ($ notice == false ) {
110
112
$ item = null ;
113
+ $ notify ->delete ();
111
114
break ;
112
115
}
113
116
$ item ['notice ' ] = array (
@@ -123,6 +126,7 @@ static function getAllForUser($user) {
123
126
$ notice = Notice::staticGet ('id ' , $ notify ->arg2 );
124
127
if ($ notice == false ) {
125
128
$ item = null ;
129
+ $ notify ->delete ();
126
130
break ;
127
131
}
128
132
$ item ['notice ' ] = array (
@@ -137,6 +141,7 @@ static function getAllForUser($user) {
137
141
$ group = User_group::staticGet ('id ' , $ notify ->arg );
138
142
if ($ group == false ) {
139
143
$ item = null ;
144
+ $ notify ->delete ();
140
145
break ;
141
146
}
142
147
$ item ['group ' ] = array (
You can’t perform that action at this time.
0 commit comments