mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-52799 unittest: Removed empty if statement
This commit is contained in:
parent
1226f3ca33
commit
28dab6408c
@ -686,9 +686,8 @@ abstract class testing_util {
|
||||
|
||||
if ($borkedmysql) {
|
||||
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, null);
|
||||
}
|
||||
continue;
|
||||
@ -712,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