summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-30 17:16:47 +0100
committerAndrew Dolgov <[email protected]>2005-12-30 17:16:47 +0100
commitbc2369382ccc3619c07c73f6f1b806946ab42bfa (patch)
treefe95a08b5ba66c50695652fb0186074e4dcdbc96
parent57d7223aee754323a6abcddd34ea58bfd02bfd5b (diff)
fix backend sanity failure (take 2)
-rw-r--r--backend.php4
-rw-r--r--tt-rss.js2
2 files changed, 5 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index e4dd4fea1..3578871e6 100644
--- a/backend.php
+++ b/backend.php
@@ -748,7 +748,9 @@
}
if ($subop == "sanityCheck") {
- sanity_check($link);
+ if (sanity_check($link)) {
+ print "<error error-code=\"0\"/>";
+ }
}
if ($subop == "globalPurge") {
diff --git a/tt-rss.js b/tt-rss.js
index 85c4564df..283412623 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -111,6 +111,8 @@ function backend_sanity_check_callback() {
if (xmlhttp.readyState == 4) {
try {
+
+ alert(xmlhttp.responseText);
if (!xmlhttp.responseXML) {
fatalError(3);