aboutsummaryrefslogtreecommitdiff
path: root/src/fcontest.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-10-24 14:58:09 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-10-24 14:58:09 +0000
commitaaee4537fc9201e9d6a242583d82fd1bea97928c (patch)
treeff57c7f621382492910292b490d9c67e6f99e739 /src/fcontest.php
parent006561454093d44a789463d531cfbc640c519867 (diff)
parent2c862aa5c6ac4afe4005582fc836b13775a99eac (diff)
downloadboca-aaee4537fc9201e9d6a242583d82fd1bea97928c.tar.gz
boca-aaee4537fc9201e9d6a242583d82fd1bea97928c.zip
Merge branch 'devel'
Diffstat (limited to 'src/fcontest.php')
-rw-r--r--src/fcontest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fcontest.php b/src/fcontest.php
index 045f28e..f8f2cff 100644
--- a/src/fcontest.php
+++ b/src/fcontest.php
@@ -1122,7 +1122,7 @@ function DBNewSite ($contest, $c=null, $param=array()) {
$a = DBGetRow ("select * from sitetable where contestnumber=$contest and sitenumber=$number", 0, $c);
if($a != null) {
if($cw) DBExec($c, "commit work");
- return 1;
+ return false;
}
}
if($duration=='') $duration = $ct["contestduration"];
@@ -1140,7 +1140,7 @@ function DBNewSite ($contest, $c=null, $param=array()) {
$ct["contestlastmileanswer"].",".$ct["contestlastmilescore"].
", $duration, 't', '$number', '$number', '$number', $sitescorelevel, 0, 0, 0, 0, 10, $updatetime)")) {
if($cw) DBExec($c, "commit work");
- return 1;
+ return false;
}
$cf=globalconf();
@@ -1160,7 +1160,7 @@ function DBNewSite ($contest, $c=null, $param=array()) {
if($cw) DBExec($c, "commit work");
LOGLevel("User " . $_SESSION["usertable"]["username"]."/". $_SESSION["usertable"]["usersitenumber"] .
" created site $number on contest $contest.",2);
- return 2;
+ return $number;
}
function DBUserUpdate($contest, $site, $user, $username, $userfull, $userdesc, $passo, $passn) {