diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-10-19 13:32:15 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-10-19 13:32:15 +0000 |
| commit | c416fd4f6f06bd8c2a35288821e280dd45034375 (patch) | |
| tree | 953d3ba0a75fec7e8669ffe5ada63923a29ef6e5 /src | |
| parent | 33bbd9542b7197b7dce6d47670aba0192ebceed5 (diff) | |
| download | boca-c416fd4f6f06bd8c2a35288821e280dd45034375.tar.gz boca-c416fd4f6f06bd8c2a35288821e280dd45034375.zip | |
bf
Diffstat (limited to 'src')
| -rw-r--r-- | src/admin/site.php | 6 | ||||
| -rw-r--r-- | src/fcontest.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/admin/site.php b/src/admin/site.php index e500f0c..986f57e 100644 --- a/src/admin/site.php +++ b/src/admin/site.php @@ -23,11 +23,11 @@ if(($ct = DBContestInfo($_SESSION["usertable"]["contestnumber"])) == null) if($ct["contestlocalsite"]==$ct["contestmainsite"]) $main=true; else $main=false; if ($main) { - if(isset($_GET["Number"]) && is_numeric($_GET["Number"]) && $_GET["Number"]>0) { + if(isset($_GET["Number"]) && isset($_GET["Go"]) && is_numeric($_GET["Number"]) && $_GET["Number"]>0) { $param = array(); $param['number'] = $_GET["Number"]; - $n = DBNewSite($_SESSION["usertable"]["contestnumber"],$param); - ForceLoad("site.php?site=$n"); + $n = DBNewSite($_SESSION["usertable"]["contestnumber"],null,$param); + ForceLoad("site.php?site=$n"); } if(isset($_GET["new"]) && $_GET["new"]=="1") { $n = DBNewSite($_SESSION["usertable"]["contestnumber"]); diff --git a/src/fcontest.php b/src/fcontest.php index 045f28e..e4a6f5d 100644 --- a/src/fcontest.php +++ b/src/fcontest.php @@ -1121,7 +1121,7 @@ function DBNewSite ($contest, $c=null, $param=array()) { } else { $a = DBGetRow ("select * from sitetable where contestnumber=$contest and sitenumber=$number", 0, $c); if($a != null) { - if($cw) DBExec($c, "commit work"); + if($cw) DBExec($c, "commit work"); return 1; } } |