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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.0-a1
    • 3.1.0-dev
    • Notification System
    • None

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

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

              Created:
              Updated:
              Resolved: