Small changes

This commit is contained in:
evader1337
2016-09-14 15:05:28 +02:00
parent 32e016e948
commit 5b73417956
6 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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);
+1 -2
View File
@@ -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];