aboutsummaryrefslogtreecommitdiffstats
path: root/Db.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mekanisti.fi>2009-11-17 09:49:44 +0200
committerFilipp Lepalaan <filipp@mekanisti.fi>2009-11-17 09:49:44 +0200
commita14477fd1140d09c3079b3477be265cc5e1410da (patch)
tree9affa0e48f341c317414be895552b6f436ba274a /Db.php
parent6ce2a6c65c9c9eba1e7660d151b6a709ecfa625f (diff)
downloadmain-a14477fd1140d09c3079b3477be265cc5e1410da.tar.gz
main-a14477fd1140d09c3079b3477be265cc5e1410da.tar.bz2
main-a14477fd1140d09c3079b3477be265cc5e1410da.zip
More fixes
Diffstat (limited to 'Db.php')
-rw-r--r--Db.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Db.php b/Db.php
index d57af10..f09cd85 100644
--- a/Db.php
+++ b/Db.php
@@ -109,7 +109,8 @@ class Db
*/
public static function fetch($sql, $data = null)
{
- $stmt = self::query($sql, $data);
+ $stmt = self::query($sql, $data)
+ or exit(App::error("Error executing query $sql"));
return $stmt->fetchAll(PDO::FETCH_ASSOC);
}