Commit 7c862e92 authored by Dries's avatar Dries
Browse files

- Patch #43668 by chx: fixed warning.

parent 6f0bd949
......@@ -1241,7 +1241,9 @@ function _user_edit_submit($uid, &$edit) {
}
$edit['picture'] = '';
}
$edit['roles'] = array_filter($edit['roles']);
if (isset($edit['roles'])) {
$edit['roles'] = array_filter($edit['roles']);
}
}
function user_edit($category = 'account') {
......
......@@ -1241,7 +1241,9 @@ function _user_edit_submit($uid, &$edit) {
}
$edit['picture'] = '';
}
$edit['roles'] = array_filter($edit['roles']);
if (isset($edit['roles'])) {
$edit['roles'] = array_filter($edit['roles']);
}
}
function user_edit($category = 'account') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment