From 267d272607065486bf653abd2af7f5f3b2a5f54a Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Mon, 30 Oct 2017 19:10:34 +0000 Subject: bf --- src/fextdata.php | 2 +- 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 "\n"; echo ""; } 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 ""; -- cgit v1.2.3