File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ private function createImages($output) {
183
183
* Function that creates a command using the options provided
184
184
*/
185
185
public function prepare () {
186
- if ($ this -> _ARRAY_IMAGES != null || count ($ this ->_ARRAY_IMAGES ) > 0 ) {
186
+ if (is_array ($ this ->_ARRAY_IMAGES )) {
187
187
return $ this ->prepareImageArray ();
188
188
} else {
189
189
return $ this ->prepareSingleImage ();
@@ -208,7 +208,7 @@ public function decode($image = null) {
208
208
if (is_array ($ image )) {
209
209
$ this ->setArrayImages ($ image );
210
210
211
- if ($ this ->_ARRAY_IMAGES == null || count ( $ this -> _ARRAY_IMAGES ) <= 0 ) {
211
+ if ($ this ->_ARRAY_IMAGES == null ) {
212
212
throw new \Exception ("Nothing to decode " );
213
213
}
214
214
Original file line number Diff line number Diff line change 1
1
<?php
2
+ error_reporting (E_ALL );
3
+ ini_set ('display_errors ' , 1 );
4
+
2
5
require dirname (dirname (__FILE__ )) . DIRECTORY_SEPARATOR . "PHPZxing " . DIRECTORY_SEPARATOR . "PHPZxingBase.php " ;
3
6
require dirname (dirname (__FILE__ )) . DIRECTORY_SEPARATOR . "PHPZxing " . DIRECTORY_SEPARATOR . "PHPZxingDecoder.php " ;
4
7
require dirname (dirname (__FILE__ )) . DIRECTORY_SEPARATOR . "PHPZxing " . DIRECTORY_SEPARATOR . "ZxingImage.php " ;
You can’t perform that action at this time.
0 commit comments