Skip to content

Commit

Permalink
Update dorf2.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowss committed Mar 4, 2014
1 parent 68c267f commit e662499
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dorf2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e662499

Please sign in to comment.