AssetTrait.php
authorAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 10:13:39 +0000 (18:13 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 10:13:39 +0000 (18:13 +0800)
AssetTrait.php

index 5e7ff34..176361f 100644 (file)
@@ -166,7 +166,10 @@ trait Pman_Core_AssetTrait {
             }
           
         }
-        
+        if (empty($ar)) {
+            echo "<!-- skipping $path - no files found -->\n";
+            return;
+        }
         
          // cached version?? - how do we decide if it's expired?
         // while scanning the directory is slow... - it's faster than serving every file...