From 33bac98b83c68343d4adf29a8043e38575c071d4 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 15 Feb 2019 10:16:02 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#599 --- wire/core/ImageInspector.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wire/core/ImageInspector.php b/wire/core/ImageInspector.php index 792f467c..69570677 100644 --- a/wire/core/ImageInspector.php +++ b/wire/core/ImageInspector.php @@ -135,7 +135,7 @@ class ImageInspector extends WireData { if(is_array($additionalInfo) && $parseAppmarker) { $appmarker = array(); foreach($additionalInfo as $k => $v) { - $appmarker[$k] = substr($v, 0, strpos($v, chr(null))); + $appmarker[$k] = substr($v, 0, strpos($v, chr(0))); } $this->info['appmarker'] = $appmarker; if(isset($additionalInfo['APP13'])) { @@ -158,7 +158,7 @@ class ImageInspector extends WireData { * Check orientation (@horst) * * @param array - * @return bool + * @return array * @todo there is already a checkOrientation method in ImageSizerEngine - do we need both? * */ @@ -273,8 +273,6 @@ class ImageInspector extends WireData { /** * parse JPEG Image and collect information into $this->info * - * @return bool - * */ protected function loadImageInfoJpg() { }