Commit f501d843 authored by Kevin Duret's avatar Kevin Duret
Browse files

fix(linting): align php linting between develop and master

parent 16f3b3a6
......@@ -502,7 +502,6 @@ $tab = [];
$tab[] = $form->createElement('radio', 'contact_enable_notifications', null, _("Yes"), '1');
$tab[] = $form->createElement('radio', 'contact_enable_notifications', null, _("No"), '0');
$tab[] = $form->createElement('radio', 'contact_enable_notifications', null, _("Default"), '2');
$form->addGroup($tab, 'contact_enable_notifications', _("Enable Notifications"), ' ');
if ($o != MASSIVE_CHANGE) {
$form->setDefaults(array('contact_enable_notifications' => '2'));
......@@ -734,6 +733,7 @@ if ($o != MASSIVE_CHANGE) {
$form->addRule('contact_admin', _("Required Field"), 'required');
}
$form->addRule('contact_auth_type', _("Required Field"), 'required');
if (
(isset($ret["contact_enable_notifications"]["contact_enable_notifications"])
&& $ret["contact_enable_notifications"]["contact_enable_notifications"] == 1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment