🚿 fewer function calls for numeric and alphanum table checks

This commit is contained in:
codemasher
2020-04-01 00:51:46 +02:00
parent 4c395abfd4
commit 2f337fe43d
4 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -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;
}
}