summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-07 10:49:28 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-07 10:49:28 +0000
commit2b2e81f6cfce285f466c3c74cb25ad30c581d2cf (patch)
treea0c2265ca3860264297d5de634795e865b2beb1a
parent93d51ba977d3f821bed9c6c292e1255feb9b2965 (diff)
downloadbrdo-2b2e81f6cfce285f466c3c74cb25ad30c581d2cf.tar.gz
brdo-2b2e81f6cfce285f466c3c74cb25ad30c581d2cf.tar.bz2
- fixed visual flaw in error output:
$host -> $url[host]
-rw-r--r--modules/backend.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/backend.class b/modules/backend.class
index 632a55222..593b6904f 100644
--- a/modules/backend.class
+++ b/modules/backend.class
@@ -65,7 +65,7 @@ class backend {
if (strstr($data, "200 OK")) {
// Remove existing entries:
- $result = db_query("DELETE FROM headlines WHERE id = $this->id");
+ $result = db_query("DELETE FROM headlines WHERE id = '$this->id'");
// Strip all 'junk':
$data = ereg_replace("<?xml.*/image>", "", $data);
@@ -95,7 +95,7 @@ class backend {
$this->timestamp = time();
}
else {
- watchdog("error", "failed to retrieve headline data from $host: <PRE>$data</PRE>");
+ watchdog("error", "failed to retrieve headline data from $url[host]: <PRE>$data</PRE>");
}
}
}