summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordsiddhath2 <dsiddhath2@gmail.com>2017-09-11 15:07:50 +0530
committerdsiddhath2 <dsiddhath2@gmail.com>2017-09-11 15:07:50 +0530
commitd9ec3d05bc30d4640b79afeba51e01d1f8df17c9 (patch)
treeb42c61f38086e57f3d66e3bd488e0a1bbbd94f5d /src
parentf2c639a4a670463a670e93a59f1bffa113c196a3 (diff)
downloadphp-zxing-d9ec3d05bc30d4640b79afeba51e01d1f8df17c9.zip
php-zxing-d9ec3d05bc30d4640b79afeba51e01d1f8df17c9.tar.gz
php-zxing-d9ec3d05bc30d4640b79afeba51e01d1f8df17c9.tar.bz2
Fixed the array explode part
Diffstat (limited to 'src')
-rw-r--r--src/PHPZxing/PHPZxingDecoder.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PHPZxing/PHPZxingDecoder.php b/src/PHPZxing/PHPZxingDecoder.php
index cd49207..75a4a5c 100644
--- a/src/PHPZxing/PHPZxingDecoder.php
+++ b/src/PHPZxing/PHPZxingDecoder.php
@@ -156,7 +156,8 @@ class PHPZxingDecoder extends PHPZxingBase {
$imageValue = $output[$key + 2];
- $imagePath = array_shift(explode(" ", $singleLine));
+ $exploded = explode(" ", $singleLine);
+ $imagePath = array_shift($exploded);
$image[] = new ZxingImage($imagePath, $imageValue, $format, $type);