Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Fix null given to genTranslationLink()
Browse files Browse the repository at this point in the history
  • Loading branch information
miyacorata committed May 8, 2020
1 parent f0ee2d9 commit 0072bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/views/idol/show.blade.php
Expand Up @@ -74,21 +74,21 @@
<tr>
<th>{{ __('Hobby') }}</th>
<td colspan="5" class="ja">
<?php if(!App::isLocale('ja')) echo genTranslationLink($idol->hobby,App::getLocale()) ?>
<?php if(!App::isLocale('ja') && !empty($idol->hobby)) echo genTranslationLink($idol->hobby,App::getLocale()) ?>
{{ $idol->hobby ?: __('N/A') }}
</td>
</tr>
<tr>
<th>{{ __('Skill') }}</th>
<td colspan="5" class="ja">
<?php if(!App::isLocale('ja')) echo genTranslationLink($idol->skill,App::getLocale()) ?>
<?php if(!App::isLocale('ja') && !empty($idol->skill)) echo genTranslationLink($idol->skill,App::getLocale()) ?>
{{ $idol->skill ?: __('N/A') }}
</td>
</tr>
<tr>
<th>{{ __('Favorite') }}</th>
<td colspan="5" class="ja">
<?php if(!App::isLocale('ja')) echo genTranslationLink($idol->favorite,App::getLocale()) ?>
<?php if(!App::isLocale('ja') && !empty($idol->favorite)) echo genTranslationLink($idol->favorite,App::getLocale()) ?>
{{ $idol->favorite ?: __('N/A') }}
</td>
</tr>
Expand Down

0 comments on commit 0072bf1

Please sign in to comment.