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

Silence SQL query.

This commit is contained in:
Simon Josefsson 2009-08-28 11:29:48 +00:00
parent b92ac94b91
commit 210ae15841

View File

@ -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;