diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-11-01 18:31:47 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-11-01 18:31:47 +0000 |
| commit | 02d57eeeb41da2bdf5ca28d419815997a4df67ea (patch) | |
| tree | c4d259049c62d66bc77d05d2a27e02ba35d006c5 /src/db.php | |
| parent | 92bda853b5c48a8cd4a4bdaa6272ad21c51cfe86 (diff) | |
| download | boca-02d57eeeb41da2bdf5ca28d419815997a4df67ea.tar.gz boca-02d57eeeb41da2bdf5ca28d419815997a4df67ea.zip | |
small fixes
Diffstat (limited to 'src/db.php')
| -rw-r--r-- | src/db.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |