mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-24 03:57:15 +00:00
Update db_MYSQL.php
This commit is contained in:
@@ -2061,8 +2061,9 @@ class MYSQL_DB {
|
|||||||
$x = "SELECT f" . $jobs[$jobDeleted]['field'] . " FROM " . TB_PREFIX . "fdata WHERE vref=" . $jobs[$jobDeleted]['wid'];
|
$x = "SELECT f" . $jobs[$jobDeleted]['field'] . " FROM " . TB_PREFIX . "fdata WHERE vref=" . $jobs[$jobDeleted]['wid'];
|
||||||
$result = mysql_query($x, $this->connection) or die(mysql_error());
|
$result = mysql_query($x, $this->connection) or die(mysql_error());
|
||||||
$fieldlevel = mysql_fetch_row($result);
|
$fieldlevel = mysql_fetch_row($result);
|
||||||
if($fieldlevel[0] == 0) {
|
if($fieldlevel[0] == 0) {
|
||||||
if ($village->natar!=1 && $jobs[$jobDeleted]['field']!=99) { //fix by ronix
|
if ($village->natar==1 && $jobs[$jobDeleted]['field']==99) { //fix by ronix
|
||||||
|
}else{
|
||||||
$x = "UPDATE " . TB_PREFIX . "fdata SET f" . $jobs[$jobDeleted]['field'] . "t=0 WHERE vref=" . $jobs[$jobDeleted]['wid'];
|
$x = "UPDATE " . TB_PREFIX . "fdata SET f" . $jobs[$jobDeleted]['field'] . "t=0 WHERE vref=" . $jobs[$jobDeleted]['wid'];
|
||||||
mysql_query($x, $this->connection) or die(mysql_error());
|
mysql_query($x, $this->connection) or die(mysql_error());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user