Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Fix log type
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJKM committed May 25, 2020
1 parent 1a2e4b7 commit cc17fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientapi/php/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function addPasswordResetLog($uid, $machine, $master, $status) {
global $database;
$id = loadDeviceId($machine);
$stmt = $database->prepare("INSERT INTO localLoginLog (people_id, device_id, timestamp, info, type, affected) VALUES (?, ?, now(), ?, ?, ?)");
$stmt->bind_param("sisi", $uid, $id, strval($status), $type, $master);
$stmt->bind_param("sisi", $uid, $id, strval($status), 2, $master);
if (!$stmt->execute()) {
return false;
}
Expand Down

0 comments on commit cc17fef

Please sign in to comment.