diff options
| -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; } } |