fix vacation mode for market

This commit is contained in:
Shadow
2017-11-14 13:15:36 +02:00
committed by GitHub
parent 918c12bace
commit 3a7ff0dddc
+6 -1
View File
@@ -104,6 +104,11 @@ class Market
header("Location: banned.php");
exit;
}
//check if vacation mode:
elseif($database->getvacmodexy($id)){
$form->addError("error","User is on vacation mode");
//break;
}
else if($availableWood >= $post['r1'] AND $availableClay >= $post['r2'] AND $availableIron >= $post['r3'] AND $availableCrop >= $post['r4'])
{
$resource = array($wtrans,$ctrans,$itrans,$crtrans);
@@ -370,4 +375,4 @@ class Market
};
$market = new Market;
?>
?>