AssetTrait.php
[Pman.Core] / AssetTrait.php
index 62ca29c..5f0627e 100644 (file)
@@ -39,7 +39,10 @@ trait Pman_Core_AssetTrait {
         }
          // cached version?? - how do we decide if it's expired?
         // while scanning the directory is slow... - it's faster than serving every file...
-        
+        if (empty($ar)) {
+            echo "<!-- skipping $path - no file found -->\n";
+            return;
+        }
         
         //$path = $this->rootURL ."/Pman/$mod/";