Don't attempt to change the password unless jabber is enabled ...

git-svn-id: file:///svn/phpbb/trunk@4594 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-10-13 17:41:00 +00:00
parent bb9cd0f2ba
commit 79469f244f

View file

@ -61,7 +61,9 @@ $jabber->resource = $jab_resource;
// Are changing (or initialising) a new host or username? If so run some checks and // Are changing (or initialising) a new host or username? If so run some checks and
// try to create account if it doesn't exist // try to create account if it doesn't exist
if ($jab_enable && ($jab_host != $config['jab_host'] || $jab_username != $config['jab_username'])) if ($jab_enable)
{
if($jab_host != $config['jab_host'] || $jab_username != $config['jab_username']))
{ {
if (!$jabber->Connect()) if (!$jabber->Connect())
{ {
@ -118,6 +120,7 @@ else if ($jab_password != $config['jab_password'])
sleep(1); sleep(1);
$jabber->Disconnect(); $jabber->Disconnect();
} }
}
// Pull relevant config data // Pull relevant config data
$sql = 'SELECT * $sql = 'SELECT *