Making sure the upgrade script has access to the pdo object

This commit is contained in:
Evert Pot 2016-03-12 18:17:42 -05:00
parent 0e7bb586a6
commit 30e8c77254

View file

@ -151,9 +151,10 @@ HTML;
}
}
$pdo = $GLOBALS['DB']->getPDO();
if(version_compare($sVersionFrom, '0.3.0', '<')) {
// Upgrading from sabre/dav 1.8 schema to 3.1 schema.
$pdo = $GLOBALS['DB']->getPDO();
if(defined("PROJECT_DB_MYSQL") && PROJECT_DB_MYSQL === TRUE) {
// MySQL upgrade