|
|
|
@ -135,7 +135,7 @@ function zotspip_maj_items($forcer = false, $n = null, $id_zcollection = '') {
|
|
|
|
|
list($balise, $attributs) = spip_xml_decompose_tag($link);
|
|
|
|
|
if ($attributs['rel'] == 'enclosure') {
|
|
|
|
|
$insertion['fichier'] = $attributs['href'];
|
|
|
|
|
$insertion['poids'] = $attributs['length'];
|
|
|
|
|
$insertion['poids'] = isset($attributs['length']) ? $attributs['length'] : '';
|
|
|
|
|
}
|
|
|
|
|
if ($attributs['rel'] == 'up') {
|
|
|
|
|
$insertion['id_parent'] = zotspip_extraire_itemkey($attributs['href']);
|
|
|
|
@ -247,7 +247,7 @@ function zotspip_maj_items($forcer = false, $n = null, $id_zcollection = '') {
|
|
|
|
|
|
|
|
|
|
// Gestion des creators
|
|
|
|
|
$creators = [];
|
|
|
|
|
if (is_array($data['creators'])) {
|
|
|
|
|
if (isset($data['creators']) && is_array($data['creators'])) {
|
|
|
|
|
$rang = 1;
|
|
|
|
|
foreach ($data['creators'] as $creator) {
|
|
|
|
|
$creators[] = [
|
|
|
|
|