MINOR Show better message if couldn't find MySQL version in MySQLDatabaseConfigurationHelper

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@105516 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-05-25 02:21:45 +00:00 committed by Sam Minnee
parent e58cdfb326
commit 8c99b2ec18

View File

@ -57,6 +57,8 @@ class MySQLDatabaseConfigurationHelper implements DatabaseConfigurationHelper {
if(!$success) { if(!$success) {
$error = "Your MySQL server version is $version. It's recommended you use at least MySQL 5.0."; $error = "Your MySQL server version is $version. It's recommended you use at least MySQL 5.0.";
} }
} else {
$error = "Could not determine your MySQL version.";
} }
return array( return array(
'success' => $success, 'success' => $success,