aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2017-04-02 15:20:49 +0200
committerRubén Calvo <rubencm@gmail.com>2017-04-02 15:20:49 +0200
commit43731202fd22b697ce8520fb88b9cc707c5f479d (patch)
tree730eee91f19ae2110b30d0fd14a314f897e6b6fe /phpBB/includes/functions_messenger.php
parent4147c388380ab872b4e0ba080fa019a5a4731302 (diff)
downloadforums-43731202fd22b697ce8520fb88b9cc707c5f479d.tar
forums-43731202fd22b697ce8520fb88b9cc707c5f479d.tar.gz
forums-43731202fd22b697ce8520fb88b9cc707c5f479d.tar.bz2
forums-43731202fd22b697ce8520fb88b9cc707c5f479d.tar.xz
forums-43731202fd22b697ce8520fb88b9cc707c5f479d.zip
[ticket/15150] Hide errors if function stream_socket_client have been disabled
PHPBB3-15150
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 799b687493..9dbf9d5ef9 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -1057,7 +1057,7 @@ function smtpmail($addresses, $subject, $message, &$err_msg, $headers = false)
$options['ssl'] = array('verify_peer' => $verify_peer, 'verify_peer_name' => $verify_peer_name, 'allow_self_signed' => $allow_self_signed);
$socket_context = stream_context_create($options);
- $smtp->socket = stream_socket_client($remote_socket, $errno, $errstr, 20, STREAM_CLIENT_CONNECT, $socket_context);
+ $smtp->socket = @stream_socket_client($remote_socket, $errno, $errstr, 20, STREAM_CLIENT_CONNECT, $socket_context);
$collector->uninstall();
$error_contents = $collector->format_errors();