diff --git a/core/core.php b/core/core.php index 114cfaac..8cebe7ee 100644 --- a/core/core.php +++ b/core/core.php @@ -2952,10 +2952,11 @@ class core extends common { 'style' => file_get_contents($stylePath) ]); } - if ($output['style']) { - $this->addOutput([ - 'style' => $this->output['style'] . file_get_contents($output['style']) - ]); + if ($output['style'] && + file_exists($output['style'])) { + $this->addOutput([ + 'style' => $this->output['style'] . file_get_contents($output['style']) + ]); } // JS