Prevent undefined index warnings for unchecked checkbpxes in the settings form

This commit is contained in:
Jens Schuppe 2024-06-06 10:56:49 +02:00
parent 670984854f
commit a0b2879b69

View file

@ -157,7 +157,7 @@ class CRM_Twingle_Form_Settings extends CRM_Core_Form {
// store settings // store settings
foreach (self::$SETTINGS_LIST as $setting) { foreach (self::$SETTINGS_LIST as $setting) {
Civi::settings()->set($setting, $values[$setting]); Civi::settings()->set($setting, $values[$setting] ?? NULL);
} }
parent::postProcess(); parent::postProcess();