]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
slightly less confusing inline if
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 23 Feb 2014 13:47:41 +0000 (14:47 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 23 Feb 2014 13:47:41 +0000 (14:47 +0100)
lib/mail.php

index 9ba4b0311c6176f13c3ef43be7060eeb57624d44..d967cfd796e546f91c50254dc8e2467529cff633 100644 (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);
         }