aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-11-06 15:21:57 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-11-06 15:21:57 +0000
commita6ea04e502ba2e6df4df3a24f5dd8f236a92af93 (patch)
tree42326760f2035a63500436ff2724fdfd3d2f9652
parent3f45be0038376c9a22db9312b49e328f68376d78 (diff)
downloadboca-a6ea04e502ba2e6df4df3a24f5dd8f236a92af93.tar.gz
boca-a6ea04e502ba2e6df4df3a24f5dd8f236a92af93.zip
users transfer ok
-rw-r--r--src/fextdata.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fextdata.php b/src/fextdata.php
index 4494a45..070031a 100644
--- a/src/fextdata.php
+++ b/src/fextdata.php
@@ -702,8 +702,9 @@ function genSQLs($contest, $site, $updatetime, $mainsite=1) {
//"problemcolor, " .
"updatetime" .
" from problemtable where contestnumber=$contest and fake='f' and updatetime >= $updatetime";
- }
- $sql['usertable']="select * from usertable where contestnumber=$contest and usersitenumber=$site and updatetime >= $updatetime";
+ $sql['usertable']="select * from usertable where contestnumber=$contest and usersitenumber=$mainsite and updatetime >= $updatetime";
+ } else
+ $sql['usertable']="select * from usertable where contestnumber=$contest and usersitenumber=$site and updatetime >= $updatetime";
$sql['sitetimetable']="select * from sitetimetable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime";
$sql['clartable']="select * from clartable where contestnumber=$contest and (clarsitenumber=$site or clarsitenumber=$mainsite) and updatetime >= $updatetime";
$sql['runtable']="select * from runtable where contestnumber=$contest and runsitenumber=$site and updatetime >= $updatetime";