fix: user field gets Multihunter only when really no ID or name given

This commit is contained in:
Martin Ambrus
2017-10-22 12:21:32 +02:00
parent 10c203dd03
commit d5e5b40a6f
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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 {
+1 -1
View File
@@ -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;
}