diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-05 15:57:43 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-05 15:57:43 -0700 |
commit | 83f8f8ebb8bc7e6cbbc3b71f664706e30dfe6c1c (patch) | |
tree | cb6aa93fe3ecfcf125799882e5532309bbcd0b1f /include/photo | |
parent | 2fea5ff8894c3f1f274a3ce67b2c023e39fdab6c (diff) | |
download | volse-hubzilla-83f8f8ebb8bc7e6cbbc3b71f664706e30dfe6c1c.tar.gz volse-hubzilla-83f8f8ebb8bc7e6cbbc3b71f664706e30dfe6c1c.tar.bz2 volse-hubzilla-83f8f8ebb8bc7e6cbbc3b71f664706e30dfe6c1c.zip |
whitespace
Diffstat (limited to 'include/photo')
-rw-r--r-- | include/photo/photo_driver.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 0bf09e4d8..eb61578e1 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -488,8 +488,10 @@ function guess_image_type($filename, $headers = '') { $ext = pathinfo($filename, PATHINFO_EXTENSION); $ph = photo_factory(''); $types = $ph->supportedTypes(); - foreach ($types as $m=>$e){ - if ($ext==$e) $type = $m; + foreach($types as $m => $e) { + if($ext === $e) { + $type = $m; + } } } @@ -501,7 +503,7 @@ function guess_image_type($filename, $headers = '') { } } - logger('Photo: guess_image_type: type='.$type, LOGGER_DEBUG); + logger('Photo: guess_image_type: type = ' . $type, LOGGER_DEBUG); return $type; } |