summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 21:42:05 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 21:42:05 +0300
commita1ca62af50047a92692c009b97bebb73f94db7ea (patch)
tree47f884324f34fef0d293add0be4a33a7a22feb1d /classes/rssutils.php
parent22ae284db48d03a2a9c52d48add35ce329450a99 (diff)
cache schema version better
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-xclasses/rssutils.php4
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");
}