From 89f91f657ec8ee7f53c974292c0f3dd91e9e785e Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Wed, 6 Jun 2007 20:35:15 +0000 Subject: [PATCH] fix error handling git-svn-id: file:///var/lib/svn/phpfspot/trunk@30 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot_db.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpfspot_db.php b/phpfspot_db.php index 96648be..6c86563 100644 --- a/phpfspot_db.php +++ b/phpfspot_db.php @@ -101,7 +101,7 @@ class PHPFSPOT_DB { if($this->getConnStatus()) { if(($result = sqlite3_query($this->db, $query)) === false) - $this->trowError($this->getLastError()); + $this->ThrowError($this->getLastError()); return $result; } @@ -237,8 +237,7 @@ class PHPFSPOT_DB { private function getLastError() { - - return sqlite3_error_string(sqlite3_last_error($this->db)); + return sqlite3_error($this->db); } // getLastError() -- 2.17.1