- $message = loadEmailTemplate('member_holiday_removed', $content, $userid);
- sendEmail($userid, getMessage('HOLIDAY_ADMIN_REMOVED_SUBJ'), $message);
- $cnt++;
- }
- }
- loadTemplate('admin_settings_saved', false, getMaskedMessage('HOLIDAY_ADMIN_MULTI_DEL', $cnt));
-} elseif (isGetRequestElementSet('userid')) {
+ $message = loadEmailTemplate('member_holiday_removed', $content, $content['userid']);
+ sendEmail($content['userid'], '{--ADMIN_HOLIDAY_REMOVED_SUBJECT--}', $message);
+ $count++;
+ } // END - if
+
+ // Free result
+ SQL_FREERESULT($result);
+ } // END - foreach
+
+ // Display final message
+ displayMessage('{%message,ADMIN_HOLIDAY_MULTI_DELETE=' . $count . '%}');
+} elseif (isGetRequestParameterSet('userid')) {