aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2017-04-02 15:17:31 +0200
committerRubén Calvo <rubencm@gmail.com>2017-04-02 15:17:31 +0200
commit4147c388380ab872b4e0ba080fa019a5a4731302 (patch)
treee09da659daee926bb85ed05064562cb699286890 /phpBB/includes
parent2f277b6f670a08ce6ca3f1ae84e73752d595a3ab (diff)
downloadforums-4147c388380ab872b4e0ba080fa019a5a4731302.tar
forums-4147c388380ab872b4e0ba080fa019a5a4731302.tar.gz
forums-4147c388380ab872b4e0ba080fa019a5a4731302.tar.bz2
forums-4147c388380ab872b4e0ba080fa019a5a4731302.tar.xz
forums-4147c388380ab872b4e0ba080fa019a5a4731302.zip
[ticket/15150] Hide errors if function stream_socket_client have been disabled
PHPBB3-15150
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_jabber.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php
index a4fbc90d57..0ef4797886 100644
--- a/phpBB/includes/functions_jabber.php
+++ b/phpBB/includes/functions_jabber.php
@@ -266,7 +266,7 @@ class jabber
$socket_context = stream_context_create($options);
- if ($this->connection = stream_socket_client($remote_socket, $errorno, $errorstr, $this->timeout, STREAM_CLIENT_CONNECT, $socket_context))
+ if ($this->connection = @stream_socket_client($remote_socket, $errorno, $errorstr, $this->timeout, STREAM_CLIENT_CONNECT, $socket_context))
{
socket_set_blocking($this->connection, 0);
socket_set_timeout($this->connection, 60);