small warning fix

This commit is contained in:
Pau Capó 2018-03-09 13:38:42 +01:00
parent 782e68676e
commit b2ebb01c70
2 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@ class Gitea_Options
<li>
<input type="password" class="token"
name="gitea_options[host_token][<?= $repository ?>]"
value="<?= @$options['host_token'][$repository] ?>"
value="<?= $options['host_token'][$repository] ? $options['host_token'][$repository] : '' ?>"
placeholder="<?= __('Global Access Token', 'gitea') ?>">
</li>
</ul>
@ -115,7 +115,7 @@ class Gitea_Options
<li class="input">
<input type="password" class="token"
name="gitea_options[repo_token][<?= $package['url'] ?>]"
value="<?= @$options['repo_token'][$package['url']] ?>"
value="<?= $options['repo_token'][$package['url']] ? $options['repo_token'][$package['url']] : '' ?>"
placeholder="<?= __('Access Token', 'gitea') ?>">
</li>
</ul>

View file

@ -3,7 +3,7 @@
* Plugin Name: Gitea Updater
* Plugin URI: http://www.paucapo.com
* Description: Plugins updater
* Version: 0.3.5
* Version: 0.3.6
* Author: Pau Capó
* Author URI: http://www.paucapo.com
* Text Domain: gitea