summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBranko Kokanovic <branko@kokanovic.org>2018-12-17 20:00:42 +0100
committerBranko Kokanovic <branko@kokanovic.org>2018-12-17 20:02:00 +0100
commit8101059062a94365d3b86eb6663376188dda5512 (patch)
treee1d19aa24141663895352fd05a311cbb9a3f7230 /lib
parent72d97b44a752dc850f35c5ba830ae49bf3471815 (diff)
downloadnextcloud-server-8101059062a94365d3b86eb6663376188dda5512.tar.gz
nextcloud-server-8101059062a94365d3b86eb6663376188dda5512.zip
Addressing comments, count to empty
Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Mail/Mailer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index 2dad72b5b12..03ffcd9d603 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -260,7 +260,7 @@ class Mailer implements IMailer {
$transport->setEncryption($smtpSecurity);
}
$streamingOptions = $this->config->getSystemValue('mail_smtpstreamoptions', array());
- if (is_array($streamingOptions) && count($streamingOptions) > 0) {
+ if (is_array($streamingOptions) && !empty($streamingOptions)) {
$transport->setStreamOptions($streamingOptions);
}