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);
|
$this->query('VACUUM', E_USER_NOTICE);
|
||||||
if($this instanceof SQLitePDODatabase) {
|
if($this instanceof SQLitePDODatabase) {
|
||||||
$msg = $this->dbConn->errorInfo();
|
$msg = $this->dbConn->errorInfo();
|
||||||
$msg = $msg[2];
|
$msg = isset($msg[2]) ? $msg[2] : 'no errors';
|
||||||
} else {
|
} else {
|
||||||
$msg = $this->dbConn->lastErrorMsg();
|
$msg = $this->dbConn->lastErrorMsg();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue