mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
MINOR: catch uninitialised var
This commit is contained in:
parent
97d4a15aa2
commit
30215cea6d
@ -364,7 +364,7 @@ class SQLite3Database extends SS_Database {
|
||||
$this->query('VACUUM', E_USER_NOTICE);
|
||||
if($this instanceof SQLitePDODatabase) {
|
||||
$msg = $this->dbConn->errorInfo();
|
||||
$msg = $msg[2];
|
||||
$msg = isset($msg[2]) ? $msg[2] : 'no errors';
|
||||
} else {
|
||||
$msg = $this->dbConn->lastErrorMsg();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user