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

    XMLWordPrintable

Details

    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']);
      	}
      

      Attachments

        Activity

          People

            bantu Andreas Fischer [X] (Inactive)
            bantu Andreas Fischer [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: