mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 10:52:18 +01:00
remove $this, not in object context
This commit is contained in:
parent
99b433fed4
commit
a86414b9ff
@ -37,18 +37,18 @@ $everything = "";
|
|||||||
$result=$db->customQuery("SELECT id, active, secret ".
|
$result=$db->customQuery("SELECT id, active, secret ".
|
||||||
"FROM clients ".
|
"FROM clients ".
|
||||||
"ORDER BY id");
|
"ORDER BY id");
|
||||||
while($row = $this->db->fetchArray($result)) {
|
while($row = $db->fetchArray($result)) {
|
||||||
$active = $this->db->getRowValue($row, 'active');
|
$active = $db->getRowValue($row, 'active');
|
||||||
if ($active == "") {
|
if ($active == "") {
|
||||||
# For some reason PostgreSQL returns empty strings for false values?!
|
# For some reason PostgreSQL returns empty strings for false values?!
|
||||||
$active = "0";
|
$active = "0";
|
||||||
}
|
}
|
||||||
$everything = $everything .
|
$everything = $everything .
|
||||||
$this->db->getRowValue($row, 'id') . "\t" . $active . "\t" .
|
$db->getRowValue($row, 'id') . "\t" . $active . "\t" .
|
||||||
$this->db->getRowValue($row, 'secret') . "\n";
|
$db->getRowValue($row, 'secret') . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->closeCursor($result);
|
$db->closeCursor($result);
|
||||||
$hash = sha1 ($everything);
|
$hash = sha1 ($everything);
|
||||||
|
|
||||||
if ($verbose) {
|
if ($verbose) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user