aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fextdata.php2
-rw-r--r--src/site/getsite.php2
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> -->";