From 05498397f3570507013d77e706d0c3c454700978 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Mon, 11 Feb 2013 17:24:17 -0500 Subject: Dba: return false on errors I'm pretty sure this is the correct thing to do. --- lib/class/dba.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php index 42a5c387..740a401d 100644 --- a/lib/class/dba.class.php +++ b/lib/class/dba.class.php @@ -83,6 +83,7 @@ class Dba { } else if ($stmt->errorCode() && $stmt->errorCode() != '00000') { debug_event('Dba', 'Error: ' . json_encode($stmt->errorInfo()), 1); + return false; } return $stmt; -- cgit