Browse Source

Can not make albums public (#80)

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

+ 1 - 1
php/modules/album.php

@@ -298,7 +298,7 @@ function setAlbumPublic($albumID, $password) {
 
 	$result	= $database->query("SELECT public FROM lychee_albums WHERE id = '$albumID';");
 	$row	= $result->fetch_object();
-	$public	= ($row->public===0 ? 1 : 0);
+	$public	= ($row->public=='0' ? 1 : 0);
 	
 	$result = $database->query("UPDATE lychee_albums SET public = '$public', password = NULL WHERE id = '$albumID';");
 	if (!$result) return false;