| @@ -161,10 +161,13 @@ | ||
| 161 | 161 | $fileurl = str_replace(DS, '/', ACYM_MEDIA_FOLDER).'templates/css/template_'.$this->mailId.'.css?time='.time(); |
| 162 | 162 | $this->editorConfig['custom_css_url'] = $cssurl; |
| 163 | 163 | $this->editorConfig['custom_css_file'] = $fileurl; |
| 164 | 164 | $this->editorConfig['custom_css_path'] = $filepath; |
| 165 | - //Can be useful for JCE integration for example. | |
| 166 | - acym_setVar('acycssfile', $fileurl); | |
| 165 | + | |
| 166 | + // Can be useful for JCE integration for example | |
| 167 | + if (!empty($filepath)) { | |
| 168 | + acym_setVar('acycssfile', $fileurl); | |
| 169 | + } | |
| 167 | 170 | } |
| 168 | 171 | } |
| 169 | 172 | |
| 170 | 173 | // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped -- Displaying the CMS editor, cannot be escaped. For Joomla editors. |