Fixed an error when photo not found

This commit is contained in:
Tobias Reich 2015-04-06 21:09:26 +02:00
parent 5c40f43290
commit 6303adc679

View File

@ -77,6 +77,8 @@ function getGraphHeader($database, $photoID) {
$result = $database->query($query);
$row = $result->fetch_object();
if (!$result||!$row) return false;
if ($row->medium==='1') $dir = 'medium';
else $dir = 'big';