mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 11:25:55 +00:00
fix bugs introduced by two previous patches
This commit is contained in:
@@ -358,7 +358,8 @@ if (!xmlhttp_rpc && typeof XMLHttpRequest!='undefined') {
|
|||||||
function parse_counters(reply, f_document, title_obj) {
|
function parse_counters(reply, f_document, title_obj) {
|
||||||
try {
|
try {
|
||||||
for (var l = 0; l < reply.childNodes.length; l++) {
|
for (var l = 0; l < reply.childNodes.length; l++) {
|
||||||
if (!reply.childNodes[l] || !reply.childNodes[l].getAttribute) {
|
if (!reply.childNodes[l] ||
|
||||||
|
typeof(reply.childNodes[l].getAttribute) == "undefined") {
|
||||||
// where did this come from?
|
// where did this come from?
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -861,7 +861,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sanity_check($link) {
|
function sanity_check($link) {
|
||||||
|
|
||||||
$error_code = 0;
|
$error_code = 0;
|
||||||
$result = db_query($link, "SELECT schema_version FROM ttrss_version");
|
$result = db_query($link, "SELECT schema_version FROM ttrss_version");
|
||||||
$schema_version = db_fetch_result($result, 0, "schema_version");
|
$schema_version = db_fetch_result($result, 0, "schema_version");
|
||||||
@@ -870,13 +870,12 @@
|
|||||||
$error_code = 5;
|
$error_code = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<error error-code='$error_code'/>";
|
|
||||||
|
|
||||||
if ($error_code != 0) {
|
if ($error_code != 0) {
|
||||||
|
print "<error error-code='$error_code'/>";
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user