Browse Source

Fixed an error when photo not found

Tobias Reich 9 years ago
parent
commit
6303adc679
1 changed files with 2 additions and 0 deletions
  1. 2 0
      php/modules/misc.php

+ 2 - 0
php/modules/misc.php

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