Index: lib/moodlelib.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lib/moodlelib.php (revision afbb53d70b6f53d529c568e87305bfb187601239) +++ lib/moodlelib.php (revision ) @@ -3264,7 +3264,7 @@ $allnames = get_all_user_name_fields(); if ($CFG->debugdeveloper) { foreach ($allnames as $allname) { - if (!array_key_exists($allname, $user)) { + if (!property_exists($user, $allname)) { // If all the user name fields are not set in the user object, then notify the programmer that it needs to be fixed. debugging('You need to update your sql to include additional name fields in the user object.', DEBUG_DEVELOPER); // Message has been sent, no point in sending the message multiple times.