mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'wip-mdl-52799' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
0e5458f45f
@ -685,7 +685,11 @@ abstract class testing_util {
|
||||
}
|
||||
|
||||
if ($borkedmysql) {
|
||||
if (empty($records) and isset($empties[$table])) {
|
||||
if (empty($records)) {
|
||||
if (!isset($empties[$table])) {
|
||||
// Table has been modified and is not empty.
|
||||
$DB->delete_records($table, null);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -707,9 +711,8 @@ abstract class testing_util {
|
||||
}
|
||||
|
||||
if (empty($records)) {
|
||||
if (isset($empties[$table])) {
|
||||
// table was not modified and is empty
|
||||
} else {
|
||||
if (!isset($empties[$table])) {
|
||||
// Table has been modified and is not empty.
|
||||
$DB->delete_records($table, array());
|
||||
}
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user