X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fexpression-functions.php;h=a7dcfcac86e9c47f55223b7d473265c81af93659;hb=e68f2f7b0a55fa31eb7ce5baf844dca40f11abea;hp=a9aa0b5681c3034b9e341a0b355c5259e257b324;hpb=8e4b45208df786e67751a6830afe84635b2ca3c5;p=mailer.git diff --git a/inc/expression-functions.php b/inc/expression-functions.php index a9aa0b5681..a7dcfcac86 100644 --- a/inc/expression-functions.php +++ b/inc/expression-functions.php @@ -192,8 +192,11 @@ function doExpressionPipe ($data) { if ((empty($data['value'])) && ($data['value'] != '0')) { // No value is set $replacer = '{DQUOTE} . ' . $data['extra_func2'] . '(' . $data['extra_func'] . '(' . $data['callback'] . '())) . {DQUOTE}'; + } elseif (isXmlTypeBool($data['value'])) { + // Boolean value detected + $replacer = '{DQUOTE} . ' . $data['extra_func2'] . '(' . $data['extra_func'] . '(' . $data['callback'] . '(' . $data['value'] . '))) . {DQUOTE}'; } else { - // Some value is set + // Some string/integer value is set $replacer = '{DQUOTE} . ' . $data['extra_func2'] . '(' . $data['extra_func'] . '(' . $data['callback'] . "('" . $data['value'] . "'))) . {DQUOTE}"; } } // END - if