diff --git a/code/SQLite3Database.php b/code/SQLite3Database.php index 4fd99ba..7e9ed7a 100644 --- a/code/SQLite3Database.php +++ b/code/SQLite3Database.php @@ -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(); }