Empty commit

This commit is contained in:
Git 2016-02-15 08:00:29 +00:00
parent 876805bd95
commit 76fed97814

View File

@ -21,7 +21,7 @@ public static function lock_account($UserID, $Type, $Message, $Reason, $LockedBy
if ($LockedByUserID == 0) {
$Username = "System";
} else {
G::$DB->query("SELECT Username FROM users_main WHERE ID = '" . $UserID . "'");
G::$DB->query("SELECT Username FROM users_main WHERE ID = '" . $LockedByUserID . "'");
list($Username) = G::$DB->next_record();
}
@ -46,7 +46,7 @@ public static function unlock_account($UserID, $Type, $Message, $Reason, $Unlock
if ($UnlockedByUserID == 0) {
$Username = "System";
} else {
G::$DB->query("SELECT Username FROM users_main WHERE ID = '" . $UserID . "'");
G::$DB->query("SELECT Username FROM users_main WHERE ID = '" . $UnlockedByUserID . "'");
list($Username) = G::$DB->next_record();
}
@ -57,4 +57,4 @@ public static function unlock_account($UserID, $Type, $Message, $Reason, $Unlock
Tools::update_user_notes($UserID, sqltime() . " - " . db_string($Message) . " by $Username\nReason: " . db_string($Reason) . "\n\n");
}
}
}
}