i'm stupid

This commit is contained in:
Pau Capó 2018-03-03 23:51:45 +01:00
parent e880f1e937
commit df5e6384f2

View file

@ -3,7 +3,7 @@
* Plugin Name: Gitea Updater * Plugin Name: Gitea Updater
* Plugin URI: http://www.paucapo.com * Plugin URI: http://www.paucapo.com
* Description: Plugins updater * Description: Plugins updater
* Version: 0.3.1 * Version: 0.3.2
* Author: Pau Capó * Author: Pau Capó
* Author URI: http://www.paucapo.com * Author URI: http://www.paucapo.com
* Text Domain: gitea * Text Domain: gitea
@ -86,7 +86,7 @@ class Gitea_Updater
return true; return true;
} }
$last_update = get_option('gitea_' . $type . '_updated'); $last_update = get_option('gitea_' . $type . '_updated');
return ($last_update + $this->cache) > time(); return ($last_update + $this->cache) < time();
} }
function get_plugins() function get_plugins()