diff options
author | Andrew Dolgov <[email protected]> | 2019-12-20 18:17:05 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-20 18:17:05 +0300 |
commit | fdb1fc760846e523c64ef10bd89f046580b6d9cb (patch) | |
tree | 8770cd448f96a4f3f1331abb8e6e80339d1693d3 /classes/rpc.php | |
parent | e9b4834b6ba788f43b8ce0bca13a9526df11d472 (diff) |
get_version: fix commit/timestamp lost on subsequent invocations because of misbehaving caching
Diffstat (limited to 'classes/rpc.php')
-rwxr-xr-x | classes/rpc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index af5bdf52c..208551075 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -595,7 +595,7 @@ class RPC extends Handler_Protected { get_version($git_commit, $git_timestamp); - if (CHECK_FOR_UPDATES && $_SESSION["access_level"] >= 10 && $git_timestamp) { + if (defined('CHECK_FOR_UPDATES') && CHECK_FOR_UPDATES && $_SESSION["access_level"] >= 10 && $git_timestamp) { $content = @fetch_file_contents(["url" => "https://srv.tt-rss.org/version.json"]); if ($content) { |