]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-del_holiday.php
Installation improved, first login:
[mailer.git] / inc / modules / admin / what-del_holiday.php
index d46a98c78744b257026d50c2617e789d2e92d2d8..ab80774af057e67f541758f86c2ebfd0a40a01ab 100644 (file)
@@ -44,14 +44,10 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
-// Check for selected holidays
-$SUM = 0;
-if (isPostRequestElementSet('sel')) $SUM = countPostSelection();
-
 // Shall I delete selected holidays???
-if ($SUM > 0) {
+if (countPostSelection() > 0) {
        // Delete multiple holiday requests (for list_holiday)
-       $cnt = 0;
+       $cnt = '0';
        foreach (postRequestElement('sel') as $id => $sel) {
                // Get the userid
                $result = SQL_QUERY_ESC("SELECT