fix: hero removal fixed in Admin

This commit is contained in:
Martin Ambrus
2017-10-22 17:41:19 +02:00
parent 6f5b464160
commit d9dc875772
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ class funct {
if ($killhero) {
$database->KillMyHero($get['uid']);
$error="&kc=1";
}else $error="&e=1";
}else $error="&e=1";
header("Location: admin.php?p=player&uid=".$get['uid'].$error);
exit;
case "reviveHero":
+1 -1
View File
@@ -4525,7 +4525,7 @@ References:
$delDef=true;
$result = $this->query_return("SELECT * FROM ".TB_PREFIX."enforcement WHERE hero>0 AND `from` = ".$wid);
if (!empty($result)) {
$dbarray = mysqli_fetch_array($result);
$dbarray = $result;
if(isset($dbarray['hero'])) {
$this->query("UPDATE ".TB_PREFIX."enforcement SET hero=0 WHERE `from` = ".$wid);
for ($i=0;$i<50;$i++) {