aboutsummaryrefslogtreecommitdiff
path: root/src/fextdata.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-07-30 16:38:11 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-07-30 16:38:11 +0000
commit9ed28cad4be75eeb26e98ccc46ac3d86a11adcfa (patch)
tree34d4de36cafbeac326c6322283f62f41b886a59c /src/fextdata.php
parent62f63132adee7d06deebc0162b0807885e8884ff (diff)
downloadboca-9ed28cad4be75eeb26e98ccc46ac3d86a11adcfa.tar.gz
boca-9ed28cad4be75eeb26e98ccc46ac3d86a11adcfa.zip
bug fixes
Diffstat (limited to 'src/fextdata.php')
-rw-r--r--src/fextdata.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fextdata.php b/src/fextdata.php
index e531a77..f382867 100644
--- a/src/fextdata.php
+++ b/src/fextdata.php
@@ -463,6 +463,7 @@ function genSQLs($contest, $site, $updatetime) {
function generateSiteXML($contest,$site,$updatetime) {
$sql = genSQLs($contest, $site, $updatetime);
$c = DBConnect();
+ $str = "";
if ($c==null) return null;
DBExec($c, "begin work");
foreach($sql as $kk => $vv) {
@@ -478,6 +479,8 @@ function generateSiteXML($contest,$site,$updatetime) {
if (($lo = DB_lo_open ($c, $val, "r")) !== false) {
$str .= " <" . $key . ">base64:" . base64_encode(DB_lo_read($contest,$lo)) . "</" . $key . ">\n";
DB_lo_close($lo);
+ } else {
+ LOGError("large object ($key,$val) not readable");
}
} else {
$str .= " <" . $key . ">" . $val . "</" . $key . ">\n";