summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-02-11 17:24:17 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-02-11 17:24:17 -0500
commit05498397f3570507013d77e706d0c3c454700978 (patch)
treec78eaff70f78b0d1d1dac3eeeca1795ff48330a2 /lib/class
parentf29e416e0499f98e556f3268ae94f58c02024d06 (diff)
downloadampache-05498397f3570507013d77e706d0c3c454700978.tar.gz
ampache-05498397f3570507013d77e706d0c3c454700978.tar.bz2
ampache-05498397f3570507013d77e706d0c3c454700978.zip
Dba: return false on errors
I'm pretty sure this is the correct thing to do.
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/dba.class.php1
1 files changed, 1 insertions, 0 deletions
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;