MDL-79637 core: Fix mistyped and replacement

This commit is contained in:
Jun Pataleta 2023-10-24 21:49:27 +08:00
parent 4cf1da1073
commit 6dc8d74ac5
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -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;