mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
discard meta riting on non existing files
This commit is contained in:
@@ -253,7 +253,7 @@ class task_period_writemeta extends task_databoxAbstract
|
||||
$write_document = (($jeton & JETON_WRITE_META_DOC) && $name == 'document');
|
||||
$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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user