MDL-32323 fix PHPUnit diag regression

This commit is contained in:
Petr Skoda 2012-04-08 00:23:37 +02:00
parent b6b8a19316
commit de3d1590ee

View File

@ -584,20 +584,16 @@ class phpunit_util {
return array(131, 'Can not use test database, try changing prefix');
}
if (empty($tables)) {
return array(132, '');
}
if (!file_exists("$CFG->dataroot/phpunit/tabledata.ser") or !file_exists("$CFG->dataroot/phpunit/tablestructure.ser")) {
if (empty($tables)) {
return array(132, '');
} else {
return array(133, '');
}
return array(133, '');
}
if (!file_exists("$CFG->dataroot/phpunit/versionshash.txt")) {
if (empty($tables)) {
return array(132, '');
} else {
return array(133, '');
}
return array(133, '');
}
$hash = phpunit_util::get_version_hash();