mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-06 12:54:21 +00:00
fix: removal a crazy MySQL on-column calculation
This commit is contained in:
@@ -4700,7 +4700,8 @@ $wallimg = "<img src=\"".GP_LOCATE."img/g/g3".$targettribe."Icon.gif\" height=\"
|
||||
global $database;
|
||||
$time = time();
|
||||
$time2 = NATURE_REGTIME;
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "odata where conqured = 0 and lastupdated2 + $time2 < $time";
|
||||
$timeFinal = $time - $time2;
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "odata where conqured = 0 and lastupdated2 < $timeFinal";
|
||||
$array = $database->query_return($q);
|
||||
foreach($array as $oasis) {
|
||||
$database->populateOasisUnits($oasis['wref'],$oasis['high']);
|
||||
|
||||
Reference in New Issue
Block a user