Skip to content

Commit

Permalink
Fixes #309
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Corbi committed Jun 14, 2017
1 parent 1bd21a2 commit 0bcf610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/dataset-detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@
$resource_title = $resource['name'];
if (array_key_exists('name_translated', $resource)):
if (array_key_exists($current_language, $resource['name_translated'])):
$resource_title = !empty($data['name_translated'][$current_language]) ? $data['name_translated'][$current_language] : $data['name_translated']['en'];
$resource_title = !empty($resource['name_translated'][$current_language]) ? $resource['name_translated'][$current_language] : $resource['name_translated']['en'];
endif;
endif; ?>
<h3><?php echo $resource_title; ?></h3>
<?php
$resource_description = $resource['description'];
if (array_key_exists('description_translated', $resource)):
if (array_key_exists($current_language, $resource['description_translated'])):
$resource_description = !empty($data['description_translated'][$current_language]) ? $data['description_translated'][$current_language] : $data['description_translated']['en'];
$resource_description = !empty($resource['description_translated'][$current_language]) ? $resource['description_translated'][$current_language] : $resource['description_translated']['en'];
endif;
endif; ?>
<p><?php echo $resource_description; ?></p>
Expand Down

0 comments on commit 0bcf610

Please sign in to comment.