@@ 166-168 (lines=3) @@ | ||
163 | } |
|
164 | ||
165 | // check if result is not empty |
|
166 | if ($query === null || $query->count() < 1) { |
|
167 | throw new NotFoundException(__('No comments found for this condition')); |
|
168 | } |
|
169 | ||
170 | // initialize model |
|
171 | $model = new FormCommentDelete($query, $type); |
|
@@ 221-223 (lines=3) @@ | ||
218 | } |
|
219 | ||
220 | // check if result is not empty |
|
221 | if ($query === null || $query->count() < 1) { |
|
222 | throw new NotFoundException(__('No comments found for this condition')); |
|
223 | } |
|
224 | ||
225 | // initialize moderation model |
|
226 | $model = new FormCommentModerate($query, $type); |