discard meta riting on non existing files

This commit is contained in:
Romain Neutron
2012-06-01 16:45:47 +02:00
parent 531d1b4ceb
commit eaa4b43d3a

View File

@@ -253,7 +253,7 @@ class task_period_writemeta extends task_databoxAbstract
$write_document = (($jeton & JETON_WRITE_META_DOC) && $name == 'document'); $write_document = (($jeton & JETON_WRITE_META_DOC) && $name == 'document');
$write_subdef = (($jeton & JETON_WRITE_META_SUBDEF) && isset($this->metasubdefs[$name . '_' . $type])); $write_subdef = (($jeton & JETON_WRITE_META_SUBDEF) && isset($this->metasubdefs[$name . '_' . $type]));
if ($write_document || $write_subdef) { if (($write_document || $write_subdef) && $subdef->is_physically_present()) {
$tsub[$name] = $subdef->get_pathfile(); $tsub[$name] = $subdef->get_pathfile();
} }
} }