fix comparing bool value with string

This commit is contained in:
printempw 2017-01-07 22:15:47 +08:00
parent 2b175249cb
commit fbf6b203e1
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@
<!-- App Scripts -->
{!! bs_footer('admin') !!}
@if (option('check_update') == '1')
@if (option('check_update'))
<script>
$(document).ready(function() {
// check for updates

View File

@ -126,7 +126,7 @@
<td>{{ trans('user.player.player-name') }}</td>
<td>
<input type="text" class="form-control" id="player_name"
placeholder="{{ (option('allow_chinese_playername') == '1') ? trans('user.player.pname-rule-chinese') : trans('user.player.pname-rule') }}" value="">
placeholder="{{ option('allow_chinese_playername') ? trans('user.player.pname-rule-chinese') : trans('user.player.pname-rule') }}" value="">
</td>
</tr>
</tbody>