ignore orphanned comments
This commit is contained in:
parent
11d686586d
commit
5813e23da9
@ -250,7 +250,7 @@ class CommentList extends SimpleExtension {
|
|||||||
while(!$result->EOF) {
|
while(!$result->EOF) {
|
||||||
$image = Image::by_id($result->fields["image_id"]);
|
$image = Image::by_id($result->fields["image_id"]);
|
||||||
$comments = $this->get_comments($image->id);
|
$comments = $this->get_comments($image->id);
|
||||||
$images[] = array($image, $comments);
|
if(!is_null($image)) $images[] = array($image, $comments);
|
||||||
$result->MoveNext();
|
$result->MoveNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user