- array(getUserId()), __FILE__, __LINE__);
-
- // Send email to admin
- sendAdminNotification(getMessage('HOLIDAY_ADMIN_DEAC_SUBJ'), 'admin_holiday_deactivated', $content, getUserId());
-
- // Display message to user
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_MEMBER_DEACTIVATED_NOW'));
- } else {
- // Display message to user
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_MEMBER_CANNOT_DEACTIVATE'));
+ array(getMemberId()), __FILE__, __LINE__);
+
+ // Send email to admin
+ sendAdminNotification('{--ADMIN_HOLIDAY_DEACTIVATED_SUBJECT--}', 'admin_holiday_deactivated', $content, getMemberId());
+
+ // Display message to user
+ displayMessage('{--MEMBER_HOLIDAY_DEACTIVATED_NOW--}');
+ } else {
+ // Display message to user
+ displayMessage('{--MEMBER_HOLIDAY_CANNOT_DEACTIVATE--}');
+ }
+
+ // Free result
+ SQL_FREERESULT($result2);
+ } elseif ($content['holiday_active'] == 'Y') {
+ // To fast!
+ displayMessage('{--MEMBER_HOLIDAY_LOCKED--}');