MDL-31035 fix showuseridentity notice before settings upgrade

This commit is contained in:
Petr Skoda 2012-01-15 17:12:35 +01:00
parent 60e99097e4
commit 33e5ac269e

View File

@ -3365,7 +3365,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 {