Skip to content

Commit

Permalink
squelch notice if array element not present
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom Mc committed May 28, 2015
1 parent d39b257 commit 318f6c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/public/common/item-relations-show.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<?php foreach ($subjectRelations as $term => $subjectRelation): ?>
<tr>
<td valign='top'><?php echo __('This Item'); ?></td>
<td valign='top'><span title="<?php echo html_escape($subjectRelation['relation_description']); ?>"><?php echo $term; ?></span></td>
<td valign='top'><span title="<?php if (isset($subjectRelation['relation_description'])) echo html_escape($subjectRelation['relation_description']); ?>"><?php echo $term; ?></span></td>
<td valign='top'>
<?php $i = 0; foreach ($subjectRelation as $relation): ?>
Item: <a href="<?php echo url('items/show/' . $relation['object_item_id']); ?>"><?php echo $relation['object_item_title']; ?></a><br>
Expand Down Expand Up @@ -63,7 +63,7 @@
}
?>
</td>
<td valign='top'><span title="<?php echo html_escape($objectRelation['relation_description']); ?>"><?php if (isset($objectRelation['relation_text'])) echo $objectRelation['relation_text']; ?><?php echo $term; ?></span></td>
<td valign='top'><span title="<?php if (isset($objectRelation['relation_description'])) echo html_escape($objectRelation['relation_description']); ?>"><?php if (isset($objectRelation['relation_text'])) echo $objectRelation['relation_text']; ?><?php echo $term; ?></span></td>
<td valign='top'><?php echo __('This Item'); ?></td>
</tr>
<?php endforeach; ?>
Expand Down

0 comments on commit 318f6c0

Please sign in to comment.