aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_jabber.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-29 16:07:42 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-29 16:07:42 +0000
commit88e9dee7e8e2b8dc2b11df0a2d0598fd7606530a (patch)
tree9a3d7fbc187b6f90429aabae40326b523440de23 /phpBB/includes/functions_jabber.php
parent8385b34222d421a258b934f459e9c6d869f80576 (diff)
downloadforums-88e9dee7e8e2b8dc2b11df0a2d0598fd7606530a.tar
forums-88e9dee7e8e2b8dc2b11df0a2d0598fd7606530a.tar.gz
forums-88e9dee7e8e2b8dc2b11df0a2d0598fd7606530a.tar.bz2
forums-88e9dee7e8e2b8dc2b11df0a2d0598fd7606530a.tar.xz
forums-88e9dee7e8e2b8dc2b11df0a2d0598fd7606530a.zip
small changes - mostly style related to fix cross-browser issues.
git-svn-id: file:///svn/phpbb/trunk@7696 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_jabber.php')
-rw-r--r--phpBB/includes/functions_jabber.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php
index 4b9928089e..566eff65c5 100644
--- a/phpBB/includes/functions_jabber.php
+++ b/phpBB/includes/functions_jabber.php
@@ -192,15 +192,15 @@ class jabber
{
if (@function_exists('dns_get_record'))
{
- $record = dns_get_record("_xmpp-client._tcp.$server", DNS_SRV);
- if (!empty($record))
+ $record = @dns_get_record("_xmpp-client._tcp.$server", DNS_SRV);
+ if (!empty($record) && !empty($record[0]['target']))
{
$server = $record[0]['target'];
}
}
else
{
- $this->add_to_log('Warning: dns_get_record function not found. GTalk will not work.');
+ $this->add_to_log('Warning: dns_get_record() function not found. GTalk will not work.');
}
$server = $use_ssl ? 'ssl://' . $server : $server;
@@ -225,7 +225,7 @@ class jabber
{
if ($this->enable_logging && sizeof($this->log_array))
{
- return '<br /><br />' . implode("<br /><br />", $this->log_array);
+ return implode("<br /><br />", $this->log_array);
}
return '';