Skip to content

Commit

Permalink
fix setting bug in PHP5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
quericy committed Oct 23, 2016
1 parent 603340d commit cc60d88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quericy_sign_mail_setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@
<span class="input-group-addon">加密方式</span>
<select name="quericy_sign_mail_secure" class="form-control">
<option value="none"
<?php echo (empty(option::get('quericy_sign_mail_secure')) || option::get('quericy_sign_mail_secure') == 'none') ? 'selected' : ''; ?>>
<?php
$quericy_sign_mail_secure = option::get('quericy_sign_mail_secure');
echo (empty($quericy_sign_mail_secure) || $quericy_sign_mail_secure == 'none') ? 'selected' : '';
?>>
</option>
<option value="tls"
Expand Down

0 comments on commit cc60d88

Please sign in to comment.