mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:35:56 +00:00
get_version: fix commit/timestamp lost on subsequent invocations because of misbehaving caching
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user