Skip to content

Commit

Permalink
Use square brackets instead of curly braces to index into a string/ar…
Browse files Browse the repository at this point in the history
…ray.
  • Loading branch information
scottsakai committed Feb 21, 2024
1 parent a1a679a commit ca7b558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ykksm-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$dbport='';
$dbtype='mysql';
}
$db_dsn = "$dbtype:dbname=$dbname;host=127.0.0.1";
$db_dsn = "sqlite:/var/secrets/ykksm.sqlite";
$db_username = $dbuser;
$db_password = $dbpass;
$db_options = array();
Expand Down
2 changes: 1 addition & 1 deletion ykksm-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function yubi_hex2bin($h)
if (!is_string($h)) return null;
$r='';
for ($a=0; $a<strlen($h); $a+=2) {
$r.=chr(hexdec($h{$a}.$h{($a+1)}));
$r.=chr(hexdec($h[$a].$h[($a+1)]));
}
return $r;
}
Expand Down

0 comments on commit ca7b558

Please sign in to comment.