From 30215cea6dbc73658065b764331709d3174e902b Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Thu, 17 Jun 2010 22:26:14 +0000 Subject: [PATCH] MINOR: catch uninitialised var --- code/SQLite3Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }