Skip to content

Commit

Permalink
MDL-68339 message: move array_key_exists() to property_exists()
Browse files Browse the repository at this point in the history
Towards PHP 7.4 compliance:

array_key_exists(): Using array_key_exists() on objects is
deprecated. Use isset() or property_exists() instead
  • Loading branch information
stronk7 committed Apr 16, 2020
1 parent 788dfb9 commit 3d88307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
}
} else {
$newsettings = array();
if (array_key_exists($componentprovidersetting, $form)) {
if (property_exists($form, $componentprovidersetting)) {
// We must be processing loggedin or loggedoff checkboxes.
// Store defained comma-separated processors as setting value.
// Using array_filter eliminates elements set to 0 above.
Expand Down

0 comments on commit 3d88307

Please sign in to comment.