@@ 393-395 (lines=3) @@ | ||
390 | if (is_array($metadata_value)) { |
|
391 | foreach ($metadata_value as $value) { |
|
392 | $value = trim($value); |
|
393 | if (create_metadata($user->guid, $metadata_name, trim($value), '', $user->guid, $access_id, true)) { |
|
394 | $md_report[] = $value; |
|
395 | } |
|
396 | } |
|
397 | } else { |
|
398 | if (create_metadata($user->guid, $metadata_name, $metadata_value, '', $user->guid, $access_id)) { |
|
@@ 397-401 (lines=5) @@ | ||
394 | $md_report[] = $value; |
|
395 | } |
|
396 | } |
|
397 | } else { |
|
398 | if (create_metadata($user->guid, $metadata_name, $metadata_value, '', $user->guid, $access_id)) { |
|
399 | $md_report[] = $metadata_value; |
|
400 | } |
|
401 | } |
|
402 | ||
403 | $metadata_value = implode(',', $md_report); |
|
404 |