diff --git a/php/classes/FilesMgr.php b/php/classes/FilesMgr.php index 96533e9..2acd042 100644 --- a/php/classes/FilesMgr.php +++ b/php/classes/FilesMgr.php @@ -435,6 +435,7 @@ class FilesMgr extends AmdaObjectMgr protected function reformatTime($timeFormat, $timeLength, $doy) { $formatLength = $timeLength == 'auto' ? strlen($timeFormat) + (strpos($timeFormat,"Y") !== false)*3 + (strpos($timeFormat,"y") !== false) + + (strpos($timeFormat,"z") !== false)*2 + (strpos($timeFormat,"M") !== false)*2 + (strpos($timeFormat,"m") !== false) + (strpos($timeFormat,"d") !== false) + (strpos($timeFormat,"H") !== false) + (strpos($timeFormat,"i") !== false) + (strpos($timeFormat,"s") !== false) @@ -471,6 +472,7 @@ class FilesMgr extends AmdaObjectMgr if (!$date) { if (strpos($oneLine,'#') === 0) fwrite($newfile, $oneLine.PHP_EOL); + else return false; } else { @@ -484,7 +486,7 @@ class FilesMgr extends AmdaObjectMgr } catch (Exception $e) { - // fwrite($newfile,$line.PHP_EOL); + return false; } } else -- libgit2 0.21.2