File tree 1 file changed +2
-13
lines changed
1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ public function getCommentInfo($comment_id): false|array
250
250
*/
251
251
$ row = $ stmt ->fetch (PDO ::FETCH_ASSOC );
252
252
253
- return $ row ?: false ;
253
+ return $ row ;
254
254
}
255
255
256
256
/**
@@ -317,18 +317,7 @@ public function getReportedCommentsByEventId(int $event_id, bool $moderated = fa
317
317
. " and ec.ID = :comment_id " ;
318
318
$ comment_stmt = $ this ->_db ->prepare ($ comment_sql );
319
319
320
- /**
321
- * @var array{
322
- * reporting_user_id: int,
323
- * deciding_user_id: int,
324
- * decision: string,
325
- * event_comment_id: int,
326
- * event_id: int
327
- * }|false $row
328
- */
329
- $ row = $ stmt ->fetch (PDO ::FETCH_ASSOC );
330
-
331
- while ($ row ) {
320
+ while ( /** @var array|false */ $ row = $ stmt ->fetch (PDO ::FETCH_ASSOC )) {
332
321
$ total ++;
333
322
$ comment_result = $ comment_stmt ->execute (['comment_id ' => $ row ['event_comment_id ' ]]);
334
323
You can’t perform that action at this time.
0 commit comments