mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
In my previous commit, "I" was "It" :-D
Plus one typo fixed.
This commit is contained in:
parent
af72e37237
commit
6fdea1a0bd
@ -848,7 +848,7 @@ function rename_field($table, $field, $newname, $continue=true, $feedback=true)
|
||||
}
|
||||
|
||||
/// Check field isn't id. Renaming over that field is not allowed
|
||||
if ($field->getName() == 'id')) {
|
||||
if ($field->getName() == 'id') {
|
||||
debugging('Field ' . $field->getName() . ' cannot be renamed. Rename skipped', DEBUG_DEVELOPER);
|
||||
return true; //Field is "id", nothing to do
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user