Fixed an error when photo not found

pull/331/head
Tobias Reich 9 years ago
parent 5c40f43290
commit 6303adc679

@ -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';

Loading…
Cancel
Save