Quotes around mysql query

This commit is contained in:
Tobias Reich 2014-01-24 23:21:50 +01:00
parent a04922503c
commit 0c609dc303

View File

@ -34,7 +34,7 @@ function getPhoto($photoID, $albumID) {
if ($return['album']!=0) {
$result = $database->query("SELECT public FROM lychee_albums WHERE id = " . $return['album'] . ";");
$result = $database->query("SELECT public FROM lychee_albums WHERE id = '" . $return['album'] . "';");
$return_album = $result->fetch_array();
if ($return_album['public']=="1") $return['public'] = "2";