From 611013d4ad3d2aba424b0dd3aec6a82ce09ac02f Mon Sep 17 00:00:00 2001 From: Timotei Date: Fri, 20 Sep 2024 20:06:55 +0300 Subject: [PATCH] Review change --- src/cdn.cls.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cdn.cls.php b/src/cdn.cls.php index 163e75e76..3179ae0e0 100644 --- a/src/cdn.cls.php +++ b/src/cdn.cls.php @@ -312,7 +312,9 @@ private function _replace_inline_css() // Parse file postfix $parsed_url = parse_url($url, PHP_URL_PATH); - if(is_null($parsed_url)) continue; + if (!$parsed_url) { + continue; + } $postfix = '.' . pathinfo($parsed_url, PATHINFO_EXTENSION); if (array_key_exists($postfix, $this->_cfg_cdn_mapping)) {