From fce80edc2fc4d21f904a4899f45aa65938c1da4a Mon Sep 17 00:00:00 2001 From: prakash-a7x Date: Tue, 9 Aug 2022 17:00:36 +0600 Subject: [PATCH] count_modules null check --- .../system/helixultimate/src/Core/HelixUltimate.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/plugins/system/helixultimate/src/Core/HelixUltimate.php b/plugins/system/helixultimate/src/Core/HelixUltimate.php index 3c798daf..7a62c300 100644 --- a/plugins/system/helixultimate/src/Core/HelixUltimate.php +++ b/plugins/system/helixultimate/src/Core/HelixUltimate.php @@ -972,6 +972,7 @@ private function reshape_device_class($device = '', $class = '') */ public function count_modules($position) { + $position = Helper::CheckNull($position); return ($this->doc->countModules($position) || $this->has_feature($position)); } @@ -1017,17 +1018,6 @@ private function has_feature($position) */ public function after_body() { - // if ($this->params->get('compress_css')) - // { - // $this->compress_css(); - // } - - // if ($this->params->get('compress_js')) - // { - // $this->compress_js($this->params->get('exclude_js')); - // } - - if ($before_body = $this->params->get('before_body')) { echo $before_body . "\n";