Update files.lib.php
This commit is contained in:
parent
98eb11be62
commit
ba001803ed
@ -1746,7 +1746,7 @@ function addFileIntoDatabaseIndex($dir, $file, $fullpathorig = '', $mode = 'uplo
|
|||||||
$ecmfile->description = ''; // indexed content
|
$ecmfile->description = ''; // indexed content
|
||||||
$ecmfile->keyword = ''; // keyword content
|
$ecmfile->keyword = ''; // keyword content
|
||||||
|
|
||||||
if(! is_null($object) && ! empty($object->id)) {
|
if (is_object($object) && $object->id > 0) {
|
||||||
$ecmfile->src_object_id = $object->id;
|
$ecmfile->src_object_id = $object->id;
|
||||||
$ecmfile->src_object_type = $object->element;
|
$ecmfile->src_object_type = $object->element;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user