From da746cb118b144f444f03982c5bc8174c815d179 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sun, 28 Aug 2011 13:01:17 +0100 Subject: [PATCH] Bug fixes: remove debug output, return values from functions --- source/lib/SihnonFramework/Database.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/lib/SihnonFramework/Database.class.php b/source/lib/SihnonFramework/Database.class.php index 39bc1af..9de43f6 100644 --- a/source/lib/SihnonFramework/Database.class.php +++ b/source/lib/SihnonFramework/Database.class.php @@ -167,10 +167,11 @@ class SihnonFramework_Database { $this->reconnect(); return $this->insert($sql, $bind_params, ++$count); } else { - var_dump($std_code, $driver_code, $message); throw new Sihnon_Exception_DatabaseQueryFailed($message, $driver_code); } } + + return $result; } public function update($sql, $bind_params = null, $count = 0) { @@ -197,6 +198,8 @@ class SihnonFramework_Database { throw new Sihnon_Exception_DatabaseQueryFailed($message, $driver_code); } } + + return $result; } public function errorInfo() {