From 4d16696c527e8d1fc9e0527c4364ba3049cc024d Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 28 Feb 2015 21:36:04 +0100 Subject: [PATCH] Don't show thumbs of protected albums when logged out --- php/modules/Album.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/modules/Album.php b/php/modules/Album.php index 7ed8d76..afea752 100644 --- a/php/modules/Album.php +++ b/php/modules/Album.php @@ -183,7 +183,7 @@ class Album extends Module { $album['password'] = ($album['password']=='' ? '0' : '1'); # Thumbs - if (($public===true&&$album['password']===false)||($public===false)) { + if (($public===true&&$album['password']==='0')||($public===false)) { # Execute query $query = Database::prepare($this->database, "SELECT thumbUrl FROM ? WHERE album = '?' ORDER BY star DESC, " . substr($this->settings['sorting'], 9) . " LIMIT 3", array(LYCHEE_TABLE_PHOTOS, $album['id']));