mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 14:21:03 +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().")");
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ class MYSQLi_DB {
|
|||||||
list($ref, $field, $mode) = $this->escape_input($ref, $field, $mode);
|
list($ref, $field, $mode) = $this->escape_input($ref, $field, $mode);
|
||||||
|
|
||||||
// update for Multihunter's username and ID
|
// update for Multihunter's username and ID
|
||||||
if ($ref == '' || $ref == 0) {
|
if (($mode && $ref == '') || (!$mode && $ref == 0)) {
|
||||||
$ref = 'Multihunter';
|
$ref = 'Multihunter';
|
||||||
$mode = 1;
|
$mode = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user