Browse Source

Don't stop upload when adjustFile returns false

Tobias Reich 10 years ago
parent
commit
a1b2d0a746
1 changed files with 1 additions and 4 deletions
  1. 1 4
      php/modules/Photo.php

+ 1 - 4
php/modules/Photo.php

@@ -117,10 +117,7 @@ class Photo extends Module {
 
 			# Set orientation based on EXIF data
 			if ($file['type']==='image/jpeg'&&isset($info['orientation'])&&$info['orientation']!==''&&isset($info['width'])&&isset($info['height'])) {
-				if (!$this->adjustFile($path, $info)) {
-					Log::error($this->database, __METHOD__, __LINE__, 'Could not adjust photo');
-					exit('Error: Could not adjust photo!');
-				}
+				if (!$this->adjustFile($path, $info)) Log::notice($this->database, __METHOD__, __LINE__, 'Could not adjust photo (' . $info['title'] . ')');
 			}
 
 			# Set original date