HTML/FlexyFramework/Generator.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 31 Jan 2011 07:37:46 +0000 (15:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 31 Jan 2011 07:37:46 +0000 (15:37 +0800)
HTML/FlexyFramework/Generator.php

index 7cc0df2..5ed7ab9 100644 (file)
@@ -177,7 +177,7 @@ class HTML_FlexyFramework_Generator extends DB_DataObject_Generator
         //var_dump($iniCacheTmp);
        // echo '<PRE>';echo file_get_contents($iniCacheTmp);exit;
         // only unpdate if nothing went wrong.
-        if (filesize($iniCacheTmp)) {
+        if (file_exists($iniCacheTmp) && filesize($iniCacheTmp)) {
             if (file_exists($iniCache)) {
                 unlink($iniCache);
             }