PMCORE-1801

This commit is contained in:
Julio Cesar Laura Avendaño
2020-08-19 13:49:17 +00:00
parent 0d2c822e4b
commit f1418479b5
2 changed files with 44 additions and 1 deletions

View File

@@ -767,7 +767,7 @@ class Form extends XmlForm
*/
public static function createXMLFileIfNotExists($filepath)
{
if (file_exists($filepath)) {
if (file_exists($filepath) && filesize($filepath) > 0) {
return;
}
$pathParts = pathinfo($filepath);