From 8e8fd9149752c75922ba9172549da2c872b7d04e Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sun, 29 Jun 2014 15:03:19 +0200 Subject: [PATCH] Fixed a bug with smart albums --- php/modules/Album.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/modules/Album.php b/php/modules/Album.php index cddf989..ab4a545 100644 --- a/php/modules/Album.php +++ b/php/modules/Album.php @@ -64,15 +64,15 @@ class Album extends Module { switch ($this->albumIDs) { case 'f': $return['public'] = false; - $query = "SELECT id, title, tags, public, star, album, thumbUrl FROM lychee_photos WHERE star = 1 " . $this->settings['sorting']; + $query = "SELECT id, title, tags, public, star, album, thumbUrl, takestamp FROM lychee_photos WHERE star = 1 " . $this->settings['sorting']; break; case 's': $return['public'] = false; - $query = "SELECT id, title, tags, public, star, album, thumbUrl FROM lychee_photos WHERE public = 1 " . $this->settings['sorting']; + $query = "SELECT id, title, tags, public, star, album, thumbUrl, takestamp FROM lychee_photos WHERE public = 1 " . $this->settings['sorting']; break; case '0': $return['public'] = false; - $query = "SELECT id, title, tags, public, star, album, thumbUrl FROM lychee_photos WHERE album = 0 " . $this->settings['sorting']; + $query = "SELECT id, title, tags, public, star, album, thumbUrl, takestamp FROM lychee_photos WHERE album = 0 " . $this->settings['sorting']; break; default: $albums = $this->database->query("SELECT * FROM lychee_albums WHERE id = '$this->albumIDs' LIMIT 1;");