- $msg = LOAD_EMAIL_TEMPLATE("member_holiday_removed", $content, $uid);
- SEND_EMAIL($uid, getMessage('HOLIDAY_ADMIN_REMOVED_SUBJ'), $msg);
- $cnt++;
- }
- }
- LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('HOLIDAY_ADMIN_MULTI_DEL'), $cnt));
-} elseif (REQUEST_ISSET_GET('uid')) {
+ $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
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_HOLIDAY_MULTI_DELETE', $count));
+} elseif (isGetRequestParameterSet('userid')) {