AssetTrait.php
authorAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 10:02:59 +0000 (18:02 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 10:02:59 +0000 (18:02 +0800)
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/";