fix: PHP <7 constructor

This commit is contained in:
Martin Ambruš
2017-10-05 16:16:07 +02:00
parent 2c66e96083
commit b579fcac00
+1 -1
View File
@@ -27,7 +27,7 @@ class Village {
private $production = array();
private $oasisowned,$ocounter = array();
function Village() {
function __construct() {
global $session, $database;
if(isset($_SESSION['wid'])) {
$this->wid = $_SESSION['wid'];