From 8261585181b7867e9464803cecc45fd073d8e7e7 Mon Sep 17 00:00:00 2001 From: Enovision GmbH Date: Sat, 6 May 2017 13:23:36 +0200 Subject: [PATCH] Update custom-css.php Stops trying to add empty entries of custom CSS files. --- custom-css.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom-css.php b/custom-css.php index 7efb12c..7b42573 100644 --- a/custom-css.php +++ b/custom-css.php @@ -40,7 +40,9 @@ public function onAssetsInitialized() $this->grav['assets']->addInlineCss($this->config->get('plugins.custom-css.css_inline')); foreach($this->config->get('plugins.custom-css.css_files', []) as $file) { - $this->grav['assets']->addCss($file['path'], isset($file['priority']) ? $file['priority'] : null); + if (trim($file['path']) !== '') { + $this->grav['assets']->addCss($file['path'], isset($file['priority']) ? $file['priority'] : null); + } } } }