slightly less confusing inline if
This commit is contained in:
parent
edee39790e
commit
02cbafb987
@ -50,9 +50,7 @@ function mail_backend()
|
|||||||
|
|
||||||
if (!$backend) {
|
if (!$backend) {
|
||||||
$backend = Mail::factory(common_config('mail', '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)) {
|
if (PEAR::isError($backend)) {
|
||||||
common_server_error($backend->getMessage(), 500);
|
common_server_error($backend->getMessage(), 500);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user