aboutsummaryrefslogtreecommitdiff
path: root/src/db.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-11-01 18:31:47 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-11-01 18:31:47 +0000
commit02d57eeeb41da2bdf5ca28d419815997a4df67ea (patch)
treec4d259049c62d66bc77d05d2a27e02ba35d006c5 /src/db.php
parent92bda853b5c48a8cd4a4bdaa6272ad21c51cfe86 (diff)
downloadboca-02d57eeeb41da2bdf5ca28d419815997a4df67ea.tar.gz
boca-02d57eeeb41da2bdf5ca28d419815997a4df67ea.zip
small fixes
Diffstat (limited to 'src/db.php')
-rw-r--r--src/db.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/db.php b/src/db.php
index 5948186..c43816f 100644
--- a/src/db.php
+++ b/src/db.php
@@ -245,9 +245,10 @@ function DBGetRow ($sql,$i,$c=null,$txt='') {
if (DBnlines($r) < $i+1) return null;
$a = DBRow ($r, $i);
if (!$a) {
- LOGError("Unable to get row $i from a query ($txt). SQL=(" . $sql . ")");
- MSGError("Unable to get row from query ($txt).");
- exit;
+ DBClose($c);
+ LOGError("Unable to get row $i from a query ($txt). SQL=(" . $sql . ")");
+ MSGError("Unable to get row from query ($txt).");
+ exit;
}
return $a;
}