Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10684

Function user_notification() prevents notifications for users with stale bans

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.11-RC1
    • 3.0.10
    • Posting
    • None

      Function user_notification() excludes banned users' ids from the list of users to be notified, but it doesn't take in account stale bans. This results in effect that users whose bans were expired but not deleted from the banlist table for the moment still won't get email notifications (includes/functions_posting.php, around line 1183):

      	// Get banned User ID's
      	$sql = 'SELECT ban_userid
      		FROM ' . BANLIST_TABLE . '
      		WHERE ban_userid <> 0
      			AND ban_exclude <> 1';

            rxu rxu
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: