From a1b2d0a7460e8f981505808b45a256b51f9e8602 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 30 May 2014 16:57:52 +0200 Subject: [PATCH] Don't stop upload when adjustFile returns false --- php/modules/Photo.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/php/modules/Photo.php b/php/modules/Photo.php index 514fcf5..e095940 100755 --- a/php/modules/Photo.php +++ b/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