From: Alan Knowles Date: Mon, 21 May 2012 08:40:03 +0000 (+0800) Subject: JsCompile.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b6e3f30c591bcbd831d5e90b5253e8ce94306ebb JsCompile.php --- diff --git a/JsCompile.php b/JsCompile.php index 3e487aff..6c88bcf8 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -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) {