From 46283ee631d6233c43279147191ada605308dd42 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 24 Oct 2009 11:31:22 +0300 Subject: Error logging --- Db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Db.php') diff --git a/Db.php b/Db.php index 2ce5ff0..f72ba4b 100644 --- a/Db.php +++ b/Db.php @@ -69,7 +69,7 @@ class Db $stmt = self::getInstance()->prepare($sql); $result = $stmt->execute($data); - + if (!$result) { $e = $stmt->errorInfo(); exit(App::error($e[2])); -- cgit v1.2.3