diff --git a/Templates/Plus/10.tpl b/Templates/Plus/10.tpl index 78a0d84c..44ff814e 100644 --- a/Templates/Plus/10.tpl +++ b/Templates/Plus/10.tpl @@ -21,7 +21,7 @@ if (mysql_num_rows($MyGold)) { if (mysql_num_rows($MyGold)) { -if($golds['b2'] == 0) { +if($golds['b2'] < time()) { mysql_query("UPDATE ".TB_PREFIX."users set b2 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); } else { mysql_query("UPDATE ".TB_PREFIX."users set b2 = '".($golds['b2']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); diff --git a/Templates/Plus/11.tpl b/Templates/Plus/11.tpl index b511bb83..3914f63a 100644 --- a/Templates/Plus/11.tpl +++ b/Templates/Plus/11.tpl @@ -21,7 +21,7 @@ if (mysql_num_rows($MyGold)) { if (mysql_num_rows($MyGold)) { -if($golds['b3'] == 0) { +if($golds['b3'] < time()) { mysql_query("UPDATE ".TB_PREFIX."users set b3 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); } else { mysql_query("UPDATE ".TB_PREFIX."users set b3 = '".($golds['b3']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); diff --git a/Templates/Plus/12.tpl b/Templates/Plus/12.tpl index 106f2fca..3142525d 100644 --- a/Templates/Plus/12.tpl +++ b/Templates/Plus/12.tpl @@ -21,7 +21,7 @@ if (mysql_num_rows($MyGold)) { if (mysql_num_rows($MyGold)) { -if($golds['b4'] == 0) { +if($golds['b4'] < time()) { mysql_query("UPDATE ".TB_PREFIX."users set b4 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); } else { mysql_query("UPDATE ".TB_PREFIX."users set b4 = '".($golds['b4']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); diff --git a/Templates/Plus/9.tpl b/Templates/Plus/9.tpl index 2420d93a..cffba573 100644 --- a/Templates/Plus/9.tpl +++ b/Templates/Plus/9.tpl @@ -21,7 +21,7 @@ if (mysql_num_rows($MyGold)) { if (mysql_num_rows($MyGold)) { -if($golds['b1'] == 0) { +if($golds['b1'] < time()) { mysql_query("UPDATE ".TB_PREFIX."users set b1 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); } else { mysql_query("UPDATE ".TB_PREFIX."users set b1 = '".($golds['b1']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error());