CherryFramework / cherry-plugin

Сompatibility: Cherry Framework v.3
8 stars 17 forks source link

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. #31

Open mustafaArik opened 6 days ago

mustafaArik commented 6 days ago

My wordpress site has error on PHP 8.1

Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in .../wp-content/plugins/cherry-plugin/includes/plugin-assets.php on line 102

on line 102

$https = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";

i fix this issue

$https = ( empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ) ? "s" : "";