1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2024-11-29 00:24:14 +01:00

add = 1 to the sql in the oci case.

fixes #10
This commit is contained in:
Klas Lindfors 2013-11-07 09:43:55 +01:00
parent db7919ea9f
commit af945c4014

View File

@ -72,7 +72,7 @@ else {
}
$sql = "SELECT aeskey, internalname FROM yubikeys " .
"WHERE publicname = '$id' AND active = 1";
"WHERE publicname = '$id' AND active";
if (!$use_oci) {
$result = $dbh->query($sql);
@ -87,6 +87,7 @@ if (!$use_oci) {
$internalname = $row['internalname'];
}
else {
$sql .= " = 1";
$result = oci_parse($dbh, $sql);
$execute = oci_execute($result);
if (!$execute) {