]> git.mjollnir.org Git - moodle.git/commitdiff
In my previous commit, "I" was "It" :-D
authorstronk7 <stronk7>
Mon, 2 Oct 2006 16:46:12 +0000 (16:46 +0000)
committerstronk7 <stronk7>
Mon, 2 Oct 2006 16:46:12 +0000 (16:46 +0000)
Plus one typo fixed.

lib/ddllib.php

index 5067eaad309e8c939110182b83560b33d75ac3eb..b541993b595707061c2bd5608dd17c184d7c5867 100644 (file)
@@ -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
     }