فهرست منبع

Accounting for zero being a valid group

Signed-off-by: ziycon <[email protected]>
ziycon 11 سال پیش
والد
کامیت
823dd2b01e
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Sources/ManageNews.php

+ 2 - 2
Sources/ManageNews.php

@@ -739,7 +739,7 @@ function SendMailing($clean_only = false)
 				$context['recipients']['members'][] = (int) $member;
 	}
 	// Cleaning groups is simple - although deal with both checkbox and commas.
-	if (!empty($_POST['groups']))
+	if (isset($_POST['groups']))
 	{
 		if (is_array($_POST['groups']))
 		{
@@ -754,7 +754,7 @@ function SendMailing($clean_only = false)
 		}
 	}
 	// Same for excluded groups
-	if (!empty($_POST['exclude_groups']))
+	if (isset($_POST['exclude_groups']))
 	{
 		if (is_array($_POST['exclude_groups']))
 		{