mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-03 02:54:21 +00:00
Fixed a bug in the WW renaming
You can no longer rename other WW or your village WW if you don't have one.
This commit is contained in:
@@ -10,7 +10,12 @@
|
||||
#################################################################################
|
||||
|
||||
include("../Village.php");
|
||||
$database->submitWWname($_POST['vref'],$_POST['wwname']);
|
||||
header("Location: ../../build.php?id=99&n");
|
||||
if(isset($_POST['wwname']) && !empty($_POST['wwname']) && $village->natar){
|
||||
$database->submitWWname($village->wid,$_POST['wwname']);
|
||||
header("Location: ../../build.php?id=99&n");
|
||||
}else{
|
||||
header("Location: ../../dorf2.php");
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user