summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordsiddhath2 <dsiddhath2@gmail.com>2017-09-11 14:15:43 +0530
committerdsiddhath2 <dsiddhath2@gmail.com>2017-09-11 14:15:43 +0530
commitf2c639a4a670463a670e93a59f1bffa113c196a3 (patch)
treed04885e8c58a262b438767d454c55d27e15b2b97 /src
parentc76873ff5599946307d11cc1cee27b6c08747027 (diff)
downloadphp-zxing-f2c639a4a670463a670e93a59f1bffa113c196a3.zip
php-zxing-f2c639a4a670463a670e93a59f1bffa113c196a3.tar.gz
php-zxing-f2c639a4a670463a670e93a59f1bffa113c196a3.tar.bz2
Explode Problem fixed
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 f0764c2..cd49207 100644
--- a/src/PHPZxing/PHPZxingDecoder.php
+++ b/src/PHPZxing/PHPZxingDecoder.php
@@ -161,7 +161,8 @@ class PHPZxingDecoder extends PHPZxingBase {
$image[] = new ZxingImage($imagePath, $imageValue, $format, $type);
} else if(preg_match('/No barcode found/', $singleLine)) {
- $imagePath = array_shift(explode(" ", $singleLine));
+ $exploded = explode(" ", $singleLine);
+ $imagePath = array_shift($exploded);
$image[] = new ZxingBarNotFound($imagePath, 101, "No barcode found");
}
}