MDL-31035 fix showuseridentity notice before settings upgrade

This commit is contained in:
Petr Skoda 2012-01-15 17:12:35 +01:00 committed by kordan
parent 8aaa2370bc
commit 11323017d5

View File

@ -3367,7 +3367,7 @@ function get_extra_user_fields($context, $already = array()) {
}
// Split showuseridentity on comma
if ($CFG->showuseridentity === '') {
if (empty($CFG->showuseridentity)) {
// Explode gives wrong result with empty string
$extra = array();
} else {