mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: hero removal fixed in Admin
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user