Skip to content

Commit

Permalink
Fix PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 on…
Browse files Browse the repository at this point in the history
… servers without php-intl extension
  • Loading branch information
alecpl committed Dec 6, 2017
1 parent a315f2b commit cdf7a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ public static function idn_convert($input, $is_utf = false)

// Note that in PHP 7.2/7.3 calling idn_to_* functions with default arguments
// throws a warning, so we have to set the variant explicitely (#6075)
$variant = INTL_IDNA_VARIANT_UTS46;
$variant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : null;
$options = 0;

if ($is_utf) {
Expand Down

0 comments on commit cdf7a88

Please sign in to comment.