Quotes around mysql query
This commit is contained in:
parent
a04922503c
commit
0c609dc303
@ -34,7 +34,7 @@ function getPhoto($photoID, $albumID) {
|
|||||||
|
|
||||||
if ($return['album']!=0) {
|
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();
|
$return_album = $result->fetch_array();
|
||||||
if ($return_album['public']=="1") $return['public'] = "2";
|
if ($return_album['public']=="1") $return['public'] = "2";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user