mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
BUGFIX Fixed non-object error in SQLitePDODatabase when database can't be written to (exposes better error)
This commit is contained in:
parent
6fe1129f42
commit
de1c8cb18b
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user