mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-03 02:54:21 +00:00
fix: messages sent to Multihunter have correct name shown
This commit is contained in:
@@ -212,7 +212,13 @@ class MYSQLi_DB {
|
||||
|
||||
function getUserField($ref, $field, $mode) {
|
||||
list($ref, $field, $mode) = $this->escape_input($ref, $field, $mode);
|
||||
|
||||
|
||||
// update for Multihunter's username and ID
|
||||
if ($ref == '' || $ref == 0) {
|
||||
$ref = 'Multihunter';
|
||||
$mode = 1;
|
||||
}
|
||||
|
||||
if(!$mode) {
|
||||
$q = "SELECT $field FROM " . TB_PREFIX . "users where id = " . (int) $ref;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user