Fail quietly if file doesn't exist

This commit is contained in:
Andy Miller
2015-10-24 14:53:16 -06:00
parent a614c8c7cc
commit 868a61dd34

View File

@@ -976,7 +976,12 @@ class Assets
$link = ROOT_DIR . $relative_path;
}
$file = ($this->fetch_command instanceof Closure) ? $this->fetch_command->__invoke($link) : file_get_contents($link);
$file = ($this->fetch_command instanceof Closure) ? @$this->fetch_command->__invoke($link) : @file_get_contents($link);
// No file found, skip it...
if ($file === false) {
continue;
}
// Double check last character being
if (!$css) {