diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2008-10-09 15:41:19 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-10-09 15:41:19 +0000 |
| commit | c8cf5693b8efaa87911d82fcd1485f9a184f5a03 (patch) | |
| tree | a21735db7b173a63fbd3f3c92b5438702032f9ba /phpBB/includes/ucp/ucp_prefs.php | |
| parent | 94f0047a9b686b87658e2c76125cc756317bf2cb (diff) | |
| download | forums-c8cf5693b8efaa87911d82fcd1485f9a184f5a03.tar forums-c8cf5693b8efaa87911d82fcd1485f9a184f5a03.tar.gz forums-c8cf5693b8efaa87911d82fcd1485f9a184f5a03.tar.bz2 forums-c8cf5693b8efaa87911d82fcd1485f9a184f5a03.tar.xz forums-c8cf5693b8efaa87911d82fcd1485f9a184f5a03.zip | |
Make sure users still get notifications if they set to only be notified by Jabber, but Jabber service disabled. (Bug #29715 - Patch by Paul)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8990 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_prefs.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_prefs.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_prefs.php b/phpBB/includes/ucp/ucp_prefs.php index c6bb4206d0..9b705fba6c 100644 --- a/phpBB/includes/ucp/ucp_prefs.php +++ b/phpBB/includes/ucp/ucp_prefs.php @@ -53,6 +53,12 @@ class ucp_prefs 'allowpm' => request_var('allowpm', (bool) $user->data['user_allow_pm']), ); + if ($data['notifymethod'] == NOTIFY_IM && (!$config['jab_enable'] || !$user->data['user_jabber'] || !@extension_loaded('xml'))) + { + // Jabber isnt enabled, or no jabber field filled in. Update the users table to be sure its correct. + $data['notifymethod'] = NOTIFY_BOTH; + } + if ($submit) { $data['style'] = ($config['override_user_style']) ? $config['default_style'] : $data['style']; |
