diff options
author | dsiddhath2 <dsiddhath2@gmail.com> | 2017-09-11 14:15:43 +0530 |
---|---|---|
committer | dsiddhath2 <dsiddhath2@gmail.com> | 2017-09-11 14:15:43 +0530 |
commit | f2c639a4a670463a670e93a59f1bffa113c196a3 (patch) | |
tree | d04885e8c58a262b438767d454c55d27e15b2b97 /src | |
parent | c76873ff5599946307d11cc1cee27b6c08747027 (diff) | |
download | php-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.php | 3 |
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"); } } |