mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 07:06:06 +00:00
Small changes
This commit is contained in:
@@ -30,7 +30,7 @@ class Automation {
|
||||
private $bountyOproduction = array();
|
||||
private $bountyOpop = 1;
|
||||
|
||||
public function isWinner() {
|
||||
public function isWinner() {
|
||||
$q = mysqli_query($GLOBALS['link'],"SELECT vref FROM ".TB_PREFIX."fdata WHERE f99 = '100' and f99t = '40'");
|
||||
$isThere = mysqli_num_rows($q);
|
||||
if($isThere > 0)
|
||||
|
||||
@@ -3541,7 +3541,7 @@ class MYSQLi_DB {
|
||||
}
|
||||
|
||||
//end general statistics
|
||||
|
||||
|
||||
function addFriend($uid, $column, $friend) {
|
||||
$q = "UPDATE " . TB_PREFIX . "users SET $column = $friend WHERE id = $uid";
|
||||
return mysqli_query($this->dblink,$q);
|
||||
|
||||
@@ -30,8 +30,7 @@ class Village {
|
||||
function Village() {
|
||||
global $session, $database;
|
||||
if(isset($_SESSION['wid'])) {
|
||||
$this->wid = $_SESSION['wid'];
|
||||
|
||||
$this->wid = $_SESSION['wid'];
|
||||
}
|
||||
else {
|
||||
$this->wid = $session->villages[0];
|
||||
|
||||
Reference in New Issue
Block a user