summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-09 10:18:46 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-09 10:18:46 +0200
commite79a027e7775bba652339232764bd95e817217b7 (patch)
tree8f66ef2ca7235c3a5aa8a1d1284b1a2e11f24461 /settings
parent796f71954847681f85038c8c27b178dc8f2e0895 (diff)
downloadnextcloud-server-e79a027e7775bba652339232764bd95e817217b7.tar.gz
nextcloud-server-e79a027e7775bba652339232764bd95e817217b7.zip
Always define sendmail_is_available
Fix #8048
Diffstat (limited to 'settings')
-rwxr-xr-xsettings/admin.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/settings/admin.php b/settings/admin.php
index ea8aa7af5d0..e75ca940ae6 100755
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -20,9 +20,7 @@ $entries=OC_Log_Owncloud::getEntries(3);
$entriesremain = count(OC_Log_Owncloud::getEntries(4)) > 3;
// Should we display sendmail as an option?
-if (findBinaryPath('sendmailsendmail')) {
- $tmpl->assign('sendmail_is_available', true);
-}
+$tmpl->assign('sendmail_is_available', (bool) findBinaryPath('sendmailsendmail'));
$tmpl->assign('loglevel', OC_Config::getValue( "loglevel", 2 ));
$tmpl->assign('mail_domain', OC_Config::getValue( "mail_domain", '' ));