BUGFIX Fixed non-object error in SQLitePDODatabase when database can't be written to (exposes better error)

This commit is contained in:
Sean Harvey 2010-09-12 09:20:17 +00:00
parent 6fe1129f42
commit de1c8cb18b

View File

@ -120,7 +120,7 @@ class SQLitePDOQuery extends SQLite3Query {
}
public function __destruct() {
$this->handle->closeCursor();
if($this->handle) $this->handle->closeCursor();
}
public function __destroy() {
@ -174,4 +174,4 @@ class ResultRow {
function get() {
return $this->_datamap;
}
}
}