mirror of
https://github.com/Yubico/yubikey-ksm.git
synced 2025-02-26 21:54:17 +01:00
parent
db7919ea9f
commit
af945c4014
@ -72,7 +72,7 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql = "SELECT aeskey, internalname FROM yubikeys " .
|
$sql = "SELECT aeskey, internalname FROM yubikeys " .
|
||||||
"WHERE publicname = '$id' AND active = 1";
|
"WHERE publicname = '$id' AND active";
|
||||||
|
|
||||||
if (!$use_oci) {
|
if (!$use_oci) {
|
||||||
$result = $dbh->query($sql);
|
$result = $dbh->query($sql);
|
||||||
@ -87,6 +87,7 @@ if (!$use_oci) {
|
|||||||
$internalname = $row['internalname'];
|
$internalname = $row['internalname'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$sql .= " = 1";
|
||||||
$result = oci_parse($dbh, $sql);
|
$result = oci_parse($dbh, $sql);
|
||||||
$execute = oci_execute($result);
|
$execute = oci_execute($result);
|
||||||
if (!$execute) {
|
if (!$execute) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user