MDL-68339 message: move array_key_exists() to property_exists()

Towards PHP 7.4 compliance:

array_key_exists(): Using array_key_exists() on objects is
deprecated. Use isset() or property_exists() instead
This commit is contained in:
Eloy Lafuente (stronk7)
2020-04-16 20:28:22 +02:00
parent 788dfb9c7d
commit 3d88307f8f
+1 -1
View File
@@ -83,7 +83,7 @@ if (($form = data_submitted()) && confirm_sesskey()) {
}
} 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.