Merge pull request #20524 from owncloud/pgsql-version-check-error

assume pgsql >=9 if checking the version fails
This commit is contained in:
Thomas Müller 2015-11-23 09:05:13 +01:00
commit 2f89eef334
1 changed files with 3 additions and 6 deletions

View File

@ -864,12 +864,9 @@ class OC_Util {
}
}
} catch (\Doctrine\DBAL\DBALException $e) {
\OCP\Util::logException('core', $e);
$errors[] = array(
'error' => $l->t('Error occurred while checking PostgreSQL version'),
'hint' => $l->t('Please make sure you have PostgreSQL >= 9 or'
. ' check the logs for more information about the error')
);
$logger = \OC::$server->getLogger();
$logger->warning('Error occurred while checking PostgreSQL version, assuming >= 9');
$logger->logException($e);
}
}
return $errors;