From 8271597836eeb9b6f50062c1ce6d685cb61e0e72 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Mon, 16 Nov 2015 03:11:47 -0500 Subject: [PATCH] Use ternary operator where applicable --- program/steps/mail/get.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index 2cc0d49..9806303 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -232,7 +232,7 @@ list($ctype_primary, $ctype_secondary) = explode('/', $mimetype); if (!$plugin['download'] && $ctype_primary == 'text') { - header("Content-Type: text/$ctype_secondary; charset=" . ($part->charset ? $part->charset : RCUBE_CHARSET)); + header("Content-Type: text/$ctype_secondary; charset=" . ($part->charset ?: RCUBE_CHARSET)); } else { header("Content-Type: $mimetype"); -- Gitblit v1.9.1