diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-10-30 19:53:11 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-10-30 19:53:11 +0000 |
| commit | 8c5560f779376adc17d99165fb923c46006c7fd1 (patch) | |
| tree | 4f9e800b8eae9ee32001fc4c7b76154f695ce44a /src | |
| parent | 68d24d0e7d2ebc0b554ff8f230c7d89d66a8d21a (diff) | |
| download | boca-8c5560f779376adc17d99165fb923c46006c7fd1.tar.gz boca-8c5560f779376adc17d99165fb923c46006c7fd1.zip | |
fix tasks
Diffstat (limited to 'src')
| -rw-r--r-- | src/fextdata.php | 3 | ||||
| -rw-r--r-- | src/ftask.php | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/fextdata.php b/src/fextdata.php index 319ed8d..ade78e8 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -353,9 +353,8 @@ function getMainXML($contest,$timeo=20,$upd=false) { $logstr .= "Generating local data for site [$localsite] at time [$updatetime]\n"; $data = generateSiteXML($contest, $localsite, $updatetime-30, $localsite); $logstr .= $data[1]; - $data = $data[0]; // $logstr .= $s; - $data = encryptData($data, myhash(trim($sitedata[2]))); + $data = encryptData($data[0], myhash(trim($sitedata[2]))); // $logstr .= "AB: " . now() . "\n" $data_url = http_build_query(array('xml' => $data, 'updatetime' => ($updatetime-30) diff --git a/src/ftask.php b/src/ftask.php index c54503a..01a4772 100644 --- a/src/ftask.php +++ b/src/ftask.php @@ -226,7 +226,7 @@ function DBOpenTasksSNS($contest,$site,$st,$order='task',$adm=false) { "usertable as u " . "where t.contestnumber=$contest and u.contestnumber=t.contestnumber and ". "u.usernumber=t.usernumber and u.usersitenumber=t.sitenumber"; - if ($site != "x") { + if (strpos($site,"x")===false) { $str = explode(",", $site); $sql .= " and (t.sitenumber=-1"; for ($i=0;$i<count($str);$i++) { |