aboutsummaryrefslogtreecommitdiff
path: root/src/db.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-11-01 18:39:08 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-11-01 18:39:08 +0000
commit6dad7f11ff72bb6829cd5b4736719c8b16fcb133 (patch)
treee40d0790144dbd465883ee8e31216ed630a57309 /src/db.php
parent92bda853b5c48a8cd4a4bdaa6272ad21c51cfe86 (diff)
parent7a23ea9d7d25811ee9a07f787a33f18169d25c5c (diff)
downloadboca-6dad7f11ff72bb6829cd5b4736719c8b16fcb133.tar.gz
boca-6dad7f11ff72bb6829cd5b4736719c8b16fcb133.zip
Merge branch 'devel'
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;
}