if (isset($user_data['enable_email_notification_exception'])) { $udf->setEnableEmailNotificationException(TRUE); } else { $udf->setEnableEmailNotificationException(FALSE); } if (isset($user_data['enable_email_notification_message'])) { $udf->setEnableEmailNotificationMessage(TRUE); } else { $udf->setEnableEmailNotificationMessage(FALSE); } if (isset($user_data['enable_email_notification_home'])) { $udf->setEnableEmailNotificationHome(TRUE); } else { $udf->setEnableEmailNotificationHome(FALSE); } if ($udf->isValid()) { $udf->Save(FALSE); if (isset($user_data['company_deduction_ids'])) { $udf->setCompanyDeduction($user_data['company_deduction_ids']); } else { $udf->setCompanyDeduction(array()); } if ($udf->isValid()) { $udf->Save(FALSE); Redirect::Page(URLBuilder::getURL(array('id' => $user_data['id'], 'data_saved' => TRUE), 'EditUserDefault.php')); break; } } default: if ($action !== 'submit') { Debug::Text('ID IS set', __FILE__, __LINE__, __METHOD__, 10);