Fixed an error when photo not found
This commit is contained in:
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…
Reference in New Issue
Block a user