diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-06-06 20:35:15 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-06-06 20:35:15 +0000 |
commit | 89f91f657ec8ee7f53c974292c0f3dd91e9e785e (patch) | |
tree | 31e24eaf893279d7f2ce96f557095c8a55bdf421 | |
parent | 415b51224f80a7ac111ffc2ad09f298849fcca4d (diff) |
fix error handling
git-svn-id: file:///var/lib/svn/phpfspot/trunk@30 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r-- | phpfspot_db.php | 5 |
1 files 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() |