slightly less confusing inline if

This commit is contained in:
Mikael Nordfeldth 2014-02-23 14:47:41 +01:00
parent edee39790e
commit 02cbafb987

View File

@ -50,9 +50,7 @@ function mail_backend()
if (!$backend) {
$backend = Mail::factory(common_config('mail', 'backend'),
(common_config('mail', 'params')) ?
common_config('mail', 'params') :
array());
common_config('mail', 'params') ?: array());
if (PEAR::isError($backend)) {
common_server_error($backend->getMessage(), 500);
}