mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-79637 core: Fix mistyped and
replacement
This commit is contained in:
parent
4cf1da1073
commit
6dc8d74ac5
@ -548,7 +548,7 @@ abstract class testing_util {
|
||||
if (!isset($updatedtables[$table])) {
|
||||
continue;
|
||||
}
|
||||
if (isset($structure[$table]['id']) ** $structure[$table]['id']->auto_increment) {
|
||||
if (isset($structure[$table]['id']) && $structure[$table]['id']->auto_increment) {
|
||||
$lastrecord = end($records);
|
||||
if ($lastrecord) {
|
||||
$nextid = $lastrecord->id + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user