Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11452

phpbb_notification_method_email::is_available() should return false when user doesn't have an email address

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: Notification System
    • Labels:
      None

      Description

      class phpbb_notification_method_email extends phpbb_notification_method_base
      {
      	/**
      	* Get notification method name
      	*
      	* @return string
      	*/
      	public function get_type()
      	{
      		return 'email';
      	}
       
      	/**
      	* Is this method available for the user?
      	* This is checked on the notifications options
      	*/
      	public function is_available()
      	{
      		return (bool) $this->config['email_enable'];
      	}
      

      class phpbb_notification_method_jabber extends phpbb_notification_method_messenger_base
      {
      	/**
      	* Get notification method name
      	*
      	* @return string
      	*/
      	public function get_type()
      	{
      		return 'jabber';
      	}
       
      	/**
      	* Is this method available for the user?
      	* This is checked on the notifications options
      	*/
      	public function is_available()
      	{
      		return ($this->global_available() && $this->user->data['user_jabber']);
      	}
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            bantu Andreas Fischer
            Reporter:
            bantu Andreas Fischer
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development