From 2b2e81f6cfce285f466c3c74cb25ad30c581d2cf Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 7 Mar 2001 10:49:28 +0000 Subject: - fixed visual flaw in error output: $host -> $url[host] --- modules/backend.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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("", "", $data); @@ -95,7 +95,7 @@ class backend { $this->timestamp = time(); } else { - watchdog("error", "failed to retrieve headline data from $host:
$data
"); + watchdog("error", "failed to retrieve headline data from $url[host]:
$data
"); } } } -- cgit v1.2.3