diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-10-30 19:10:34 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-10-30 19:10:34 +0000 |
| commit | 267d272607065486bf653abd2af7f5f3b2a5f54a (patch) | |
| tree | 8278f5f8756aa95e7865b83ad79c9c95564f0d6d | |
| parent | 6b5fc8ccd45770aea39727ad4b0e333540ce7a7b (diff) | |
| download | boca-267d272607065486bf653abd2af7f5f3b2a5f54a.tar.gz boca-267d272607065486bf653abd2af7f5f3b2a5f54a.zip | |
bf
| -rw-r--r-- | src/fextdata.php | 2 | ||||
| -rw-r--r-- | src/site/getsite.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fextdata.php b/src/fextdata.php index e688347..b38be3c 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -422,7 +422,7 @@ function getMainXML($contest,$timeo=20,$upd=false) { return $logstr; } -function importFromXML($ar,$contest,$site,$tomain=false,$uptime=0,$mainsite=1) { +function importFromXML($ar,$contest,$site,$tomain=false,$uptime=0,$mainsite=-1) { LOGInfo("importFromXML: contest $contest site $site tomain $tomain"); $logstr = ''; if($tomain) $serv='Main'; else $serv='Local'; diff --git a/src/site/getsite.php b/src/site/getsite.php index d2b616d..58406d1 100644 --- a/src/site/getsite.php +++ b/src/site/getsite.php @@ -42,7 +42,7 @@ if($ct["contestlocalsite"]==$ct["contestmainsite"]) { echo "<!-- <ERROR8> ".session_id() . " -->\n"; echo "<!-- <NOTOK> -->"; } else { - $resp = importFromXML($s,$_SESSION["usertable"]["contestnumber"],$fromsite,true,-1); + $resp = importFromXML($s,$_SESSION["usertable"]["contestnumber"],$fromsite,true,0,-1); echo $resp[1]; if($resp[0]) echo "<!-- <OK> -->"; |