From: Andreas Unterkircher Date: Wed, 6 Jun 2007 20:35:15 +0000 (+0000) Subject: fix error handling X-Git-Tag: phpfspot-1.2~305 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=89f91f657ec8ee7f53c974292c0f3dd91e9e785e;ds=sidebyside fix error handling git-svn-id: file:///var/lib/svn/phpfspot/trunk@30 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- 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()