1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 20:31:28 +00:00

fix bugs introduced by two previous patches

This commit is contained in:
Andrew Dolgov
2005-12-22 14:06:15 +01:00
parent 5edfe3038d
commit 9cbca41fbd
2 changed files with 5 additions and 5 deletions

View File

@@ -861,7 +861,7 @@
}
function sanity_check($link) {
$error_code = 0;
$result = db_query($link, "SELECT schema_version FROM ttrss_version");
$schema_version = db_fetch_result($result, 0, "schema_version");
@@ -870,13 +870,12 @@
$error_code = 5;
}
print "<error error-code='$error_code'/>";
if ($error_code != 0) {
print "<error error-code='$error_code'/>";
return false;
} else {
return true;
}
}
}
?>