Fix warning concerning a missing "created" field

This commit is contained in:
Michael
2024-01-14 11:58:06 +00:00
parent 5dc49352e8
commit d4c16b8704
2 changed files with 1 additions and 76 deletions

View File

@@ -762,7 +762,7 @@ class Photo
));
} else {
// This query doesn't do the count and is much faster
$albums = DBA::toArray(DBA::p("SELECT DISTINCT(`album`), '' AS `total`
$albums = DBA::toArray(DBA::p("SELECT DISTINCT(`album`), '' AS `total`, ANY_VALUE(`created`) AS `created`
FROM `photo` USE INDEX (`uid_album_scale_created`)
WHERE `uid` = ? AND `photo-type` IN (?, ?, ?) $sql_extra",
$uid,