X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_db.php;fp=phpfspot_db.php;h=6c86563ed962ca8b813aae3ff3b1bdb4a42048a4;hp=96648be65cd09318180d2515d64bb13b18f2b247;hb=89f91f657ec8ee7f53c974292c0f3dd91e9e785e;hpb=415b51224f80a7ac111ffc2ad09f298849fcca4d 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()