Include full image object list in ajax result contents

This commit is contained in:
Junior 2022-02-15 17:15:06 +00:00
parent 8000ef3a38
commit 6495cc68c1

View File

@ -6,6 +6,7 @@ $data = array();
$data["albumcontents"] = "";
$data["albumtitle"] = "";
$data["albumdescription"] = "";
$data["images"] = array();
if ( $_SESSION['currentalbum'] != 0 ) {
$album = new Album($_SESSION['currentalbum']);
@ -15,6 +16,7 @@ if ( $_SESSION['currentalbum'] != 0 ) {
$griditems = Image::getImagesForAlbum($album->getID());
$data["albumtitle"] = $album->getTitle();
$data["albumdescription"] = $album->getDescription();
$data["images"] = $griditems;
}
}
if ( $_SESSION['currentalbum'] == 0 ) {