From e66249967558891f526ce2cfe5e97ea378c9fe57 Mon Sep 17 00:00:00 2001 From: Shadow Date: Tue, 4 Mar 2014 08:23:47 +0200 Subject: [PATCH] Update dorf2.php --- dorf2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dorf2.php b/dorf2.php index e54ff3f9..22187304 100644 --- a/dorf2.php +++ b/dorf2.php @@ -12,7 +12,8 @@ include("GameEngine/Village.php"); $start = $generator->pageLoadTimeStart(); if(isset($_GET['newdid'])) { - $_SESSION['wid'] = $_GET['newdid']; + $_SESSION['wid'] = $_GET['newdid']; + $database->query("UPDATE ".TB_PREFIX."users SET village_select=".$_GET['newdid']." WHERE id=".$session->uid); header("Location: ".$_SERVER['PHP_SELF']); }else{ $building->procBuild($_GET);