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:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user