moved resize_image function to PHPFSPOT class
[phpfspot.git] / phpfspot_db.php
index 96648be65cd09318180d2515d64bb13b18f2b247..6c86563ed962ca8b813aae3ff3b1bdb4a42048a4 100644 (file)
@@ -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()