mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-12-01 15:24:16 +01:00
Silence SQL query.
This commit is contained in:
parent
b92ac94b91
commit
210ae15841
@ -40,8 +40,10 @@ fclose ($fh);
|
||||
$b64rnd = base64_encode ($rnd);
|
||||
|
||||
$query = "SELECT MAX(id) FROM clients";
|
||||
$result = query($conn, $query)
|
||||
or logdie("code=maxiderror");
|
||||
if (!mysql_query($query, $conn)) {
|
||||
debug("SQL query error: " . mysql_error());
|
||||
logdie("code=maxiderror");
|
||||
}
|
||||
$max = mysql_fetch_row ($result);
|
||||
mysql_free_result($result);
|
||||
$max = $max[0] + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user