Warning: in_array() expects parameter 2 to be array, null given in civicrm_user_admin_permissions_submit()
Also posted in the GitHub queue, where there is a PR.
In the Backdrop version of CiviCRM, there is a check when the Backdrop permissions are edited to see if the anonymous user is getting dangerous permissions; the check is carried out by civicrm_user_admin_permissions_submit()
.
This works fine if one is editing the entire permissions matrix, but if one edits any other single permission (e.g., at path admin/config/people/permissions/authenticated
), then submission stuffs watchdog with many warnings like this:
Warning: in_array() expects parameter 2 to be array, null given in civicrm_user_admin_permissions_submit() (line 1041 of /mysite/modules/contrib/civicrm/backdrop/civicrm.module).
The problem is that the code is expecting the form to contain the anonymous permissions, but it doesn't. If the form doesn't contain anonymous permissions, then this function should simply exit.