diff options
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; } |