Return false for smart albums
This commit is contained in:
parent
8c9b97236b
commit
bd5394024b
@ -344,6 +344,7 @@ function isAlbumPublic($albumID) {
|
|||||||
$result = $database->query("SELECT public FROM lychee_albums WHERE id = '$albumID';");
|
$result = $database->query("SELECT public FROM lychee_albums WHERE id = '$albumID';");
|
||||||
$row = $result->fetch_object();
|
$row = $result->fetch_object();
|
||||||
|
|
||||||
|
if ($albumID==='0'||$albumID==='s'||$albumID==='f') return false;
|
||||||
if ($row->public==1) return true;
|
if ($row->public==1) return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user