mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-26 23:28:09 +00:00
🚿 fewer function calls for numeric and alphanum table checks
This commit is contained in:
+1
-1
@@ -246,7 +246,7 @@ class QRCode{
|
||||
$len = strlen($string);
|
||||
|
||||
for($i = 0; $i < $len; $i++){
|
||||
if(!in_array($string[$i], $charmap, true)){
|
||||
if(!isset($charmap[$string[$i]])){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user