Some more rewrites and fix for countPostSelection()
[mailer.git] / inc / modules / admin / what-del_holiday.php
index a61324a4f528d0dfc6f6262dfe7dd81e7fb78a74..ab80774af057e67f541758f86c2ebfd0a40a01ab 100644 (file)
@@ -44,12 +44,8 @@ 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';
        foreach (postRequestElement('sel') as $id => $sel) {