@@ 160-162 (lines=3) @@ | ||
157 | } |
|
158 | ||
159 | // check if result is not empty |
|
160 | if ($query === null || $query->count() < 1) { |
|
161 | throw new NotFoundException(__('No comments found for this condition')); |
|
162 | } |
|
163 | ||
164 | // initialize model |
|
165 | $model = new FormCommentDelete($query, $type); |
|
@@ 213-215 (lines=3) @@ | ||
210 | } |
|
211 | ||
212 | // check if result is not empty |
|
213 | if ($query === null || $query->count() < 1) { |
|
214 | throw new NotFoundException(__('No comments found for this condition')); |
|
215 | } |
|
216 | ||
217 | // initialize moderation model |
|
218 | $model = new FormCommentModerate($query, $type); |