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