1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 05:51:28 +00:00

proper handling of failed sanity check in parse_counters + weird getAttribute workaround

This commit is contained in:
Andrew Dolgov
2005-12-22 13:51:12 +01:00
parent 59b7764387
commit 6043fb7e20
3 changed files with 28 additions and 12 deletions

View File

@@ -53,6 +53,8 @@
pg_query("set client_encoding = 'utf-8'");
}
if (!sanity_check($link)) { return; }
$fetch = $_GET["fetch"];
setcookie("ttrss_icons_url", ICONS_URL);
@@ -717,18 +719,7 @@
}
if ($subop == "sanityCheck") {
$error_code = 0;
$result = db_query($link, "SELECT schema_version FROM ttrss_version");
$schema_version = db_fetch_result($result, 0, "schema_version");
if ($schema_version != SCHEMA_VERSION) {
$error_code = 5;
}
print "<error error-code='$error_code'/>";
sanity_check();
}
if ($subop == "globalPurge") {