Don't show thumbs of protected albums when logged out

This commit is contained in:
Tobias Reich 2015-02-28 21:36:04 +01:00
parent 761042d033
commit 4d16696c52

View File

@ -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']));