diff options
author | Andrew Dolgov <[email protected]> | 2021-02-25 21:42:05 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-25 21:42:05 +0300 |
commit | a1ca62af50047a92692c009b97bebb73f94db7ea (patch) | |
tree | 47f884324f34fef0d293add0be4a33a7a22feb1d /classes/rssutils.php | |
parent | 22ae284db48d03a2a9c52d48add35ce329450a99 (diff) |
cache schema version better
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-x | classes/rssutils.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php index b6aecb8c9..11a94162c 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -53,11 +53,9 @@ class RSSUtils { } static function update_daemon_common($limit = null, $options = []) { - $schema_version = get_schema_version(); - if (!$limit) $limit = Config::get(Config::DAEMON_FEED_LIMIT); - if ($schema_version != SCHEMA_VERSION) { + if (get_schema_version() != SCHEMA_VERSION) { die("Schema version is wrong, please upgrade the database.\n"); } |