mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: user field gets Multihunter only when really no ID or name given
This commit is contained in:
@@ -79,7 +79,6 @@ class adm_DB {
|
||||
}
|
||||
|
||||
mysqli_query($this->connection,"Insert into ".TB_PREFIX."admin_log values (0,'X','$username logged in (IP: <b>".$_SERVER['REMOTE_ADDR']."</b>)',".time().")");
|
||||
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -214,7 +214,7 @@ class MYSQLi_DB {
|
||||
list($ref, $field, $mode) = $this->escape_input($ref, $field, $mode);
|
||||
|
||||
// update for Multihunter's username and ID
|
||||
if ($ref == '' || $ref == 0) {
|
||||
if (($mode && $ref == '') || (!$mode && $ref == 0)) {
|
||||
$ref = 'Multihunter';
|
||||
$mode = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user