mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-21 18:47:14 +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) {
|
function getUserField($ref, $field, $mode) {
|
||||||
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
|
||||||
|
if ($ref == '' || $ref == 0) {
|
||||||
|
$ref = 'Multihunter';
|
||||||
|
$mode = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if(!$mode) {
|
if(!$mode) {
|
||||||
$q = "SELECT $field FROM " . TB_PREFIX . "users where id = " . (int) $ref;
|
$q = "SELECT $field FROM " . TB_PREFIX . "users where id = " . (int) $ref;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user