diff --git a/sources/SiteCombiner.class.php b/sources/SiteCombiner.class.php index 1cdaa48cd8..05be2102e8 100644 --- a/sources/SiteCombiner.class.php +++ b/sources/SiteCombiner.class.php @@ -337,6 +337,11 @@ private function _combineFiles($type) // Read in all the data so we can process foreach ($this->_combine_files as $key => $file) { + if (!file_exists($file['file'])) + { + continue; + } + $tempfile = trim(file_get_contents($file['file'])); $tempfile = (substr($tempfile, -3) === '}()') ? $tempfile . ';' : $tempfile; $this->_combine_files[$key]['content'] = $tempfile;