if ($row->password!='') $return['content'][$row->id]['password'] = true;
// Thumbs
// Thumbs
if (($public&&$row->password=='')||(!$public)) {
if (($public&&$row->password=='')||(!$public)) {
@ -55,15 +56,17 @@ function getAlbums($public) {
$result2 = $database->query("SELECT thumbUrl FROM lychee_photos WHERE album = '$albumID' ORDER BY star DESC, " . substr($settings['sorting'], 9) . " LIMIT 0, 3");
$result2 = $database->query("SELECT thumbUrl FROM lychee_photos WHERE album = '$albumID' ORDER BY star DESC, " . substr($settings['sorting'], 9) . " LIMIT 0, 3");