JsCompile.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 21 May 2012 08:40:03 +0000 (16:40 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 21 May 2012 08:40:03 +0000 (16:40 +0800)
JsCompile.php

index 3e487af..6c88bcf 100644 (file)
@@ -241,7 +241,7 @@ class Pman_Core_JsCompile  extends Pman
             return false;
             
         }
-        $targetm = file_exists($output) ? filemtime($output) : 0;
+        $targetm = file_exists($output) && filesize($output) ? filemtime($output) : 0;
         $max = 0;
         $ofiles = array();
         foreach($files as $f => $mt) {