Browse Source

Return false for smart albums

Tobias Reich 11 years ago
parent
commit
bd5394024b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      php/modules/album.php

+ 2 - 1
php/modules/album.php

@@ -340,10 +340,11 @@ function checkAlbumPassword($albumID, $password) {
 function isAlbumPublic($albumID) {
 function isAlbumPublic($albumID) {
 
 
 	global $database;
 	global $database;
-
+	
 	$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;