From 9c47c507da96f65297d24ed53ee0ac0689c84aee Mon Sep 17 00:00:00 2001 From: rub Date: Wed, 19 Apr 2006 22:07:52 +0000 Subject: Issue ID 330/337: o Fix last bugs o Change class "errors" to class "infos" git-svn-id: http://piwigo.org/svn/trunk@1214 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/notification_by_mail.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'admin') diff --git a/admin/notification_by_mail.php b/admin/notification_by_mail.php index a8e0c62d7..7ede9ba61 100644 --- a/admin/notification_by_mail.php +++ b/admin/notification_by_mail.php @@ -82,7 +82,7 @@ function do_timeout_treatment($post_keyname, $check_key_treated = array()) $time_refresh = 0; } $_POST[$post_keyname] = array_diff($_POST[$post_keyname], $check_key_treated); - + $must_repost = true; array_push($page['errors'], sprintf(l10n('nbm_background_treatment_redirect'), $time_refresh)); } @@ -227,7 +227,7 @@ function do_action_send_mail_notification($action = 'list_to_send', $check_key_l $is_list_all_without_test = ($env_nbm['is_sendmail_timeout'] or $conf['nbm_list_all_enabled_users_to_send']); // Check if exist news to list user or send mails - if ((!$is_list_all_without_test == false) or ($is_action_send)) + if ((!$is_list_all_without_test) or ($is_action_send)) { if (count($data_users) > 0) { @@ -605,6 +605,12 @@ switch ($page['mode']) )); foreach ($data_users as $num => $nbm_user) + { + if ( + (!$must_repost) or // Not timeout, normal treatment + (($must_repost) and in_array($nbm_user['check_key'], $_POST['send_selection'])) // Must be repost, show only user to send + ) + { $template->assign_block_vars( $page['mode'].'.send_data.user_send_mail', array( @@ -618,6 +624,8 @@ switch ($page['mode']) 'EMAIL' => $nbm_user['mail_address'], 'LAST_SEND'=> $nbm_user['last_send'] )); + } + } } break; -- cgit v1.2.3