I'm calling `getLatestComments()` in my theme's album.php.
For testing purposes i'm just printing the comment itself.
My code:
`
<?php
foreach(getLatestComments(10,"image",$_zp_current_image-
>getID()) as $commentID => $comment){
print $comment["comment"];
}
?>
`
This is throwing a Fatal error: Cannot access empty property in \zenphoto\zp-core\template-functions.php on line 3260 which is `$comment['folder'] = $img->$album->name;` but if i comment that line it works. I don't understand why $album->name is empty, it shouldn't be filled with the folder name of the gallery?