Always define sendmail_is_available

Fix #8048
This commit is contained in:
Joas Schilling 2014-04-09 10:18:46 +02:00
parent 796f719548
commit e79a027e77
1 changed files with 1 additions and 3 deletions

View File

@ -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", '' ));