markocupic / gallery-creator-bundle

Manage and display photo galleries. Plugin for Contao CMS.
GNU General Public License v3.0
7 stars 3 forks source link

when a gallery is empty no SQL row will be returned, leading to NULL being passed into hasChildAlbums #33

Closed ronnybremer closed 1 year ago

ronnybremer commented 1 year ago

As the SQL returned nothing, the $albumId needs to be taken from the parameter of the function, not the returned row.