Prevent potential bug

This commit is contained in:
Tobias Reich 2014-03-18 23:05:18 +01:00
parent ee69207ff1
commit 69bcd9932b

View File

@ -13,7 +13,7 @@ function getPhoto($photoID, $albumID) {
global $database;
$query = "SELECT * FROM lychee_photos WHERE id = '$photoID';";
$query = "SELECT * FROM lychee_photos WHERE id = '$photoID' LIMIT 1;";
$result = $database->query($query);
$return = $result->fetch_array();