mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-17 17:25:28 +00:00
:octocat: QRCode::isByte(): string "0" fails with empty()
This commit is contained in:
+1
-1
@@ -307,7 +307,7 @@ class QRCode{
|
||||
* a dummy
|
||||
*/
|
||||
public function isByte(string $data):bool{
|
||||
return !empty($data);
|
||||
return $data !== '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user