- // Build the file string out of the term entries
- if (array_key_exists('file', $row) && empty($row['file'])) {
- $row['file'] = Term::fileTextFromItemId($row['internal-iid']);
- }
+ // Build the tag string out of the term entries
+ if (array_key_exists('tag', $row) && empty($row['tag'])) {
+ $row['tag'] = Term::tagTextFromItemId($row['internal-iid']);
+ }
+
+ // Build the file string out of the term entries
+ if (array_key_exists('file', $row) && empty($row['file'])) {
+ $row['file'] = Term::fileTextFromItemId($row['internal-iid']);