From d159f7abc8bda9458cc2e3e5a2a3c55b8eefe5fe Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 5 Aug 2001 08:29:27 +0000 Subject: - cloud.module: + small bugfix --- modules/cloud.module | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/cloud.module b/modules/cloud.module index 880e09c22..d3670e263 100644 --- a/modules/cloud.module +++ b/modules/cloud.module @@ -55,10 +55,8 @@ function cloud_update($site) { $data .= fgets($fp, 128); } - if (strstr($data, "200 OK")) { - if (abs($site[size] - strlen($data)) > 50) { - db_query("UPDATE site SET size = '". strlen($data) ."', timestamp = '". time() ."' WHERE link = '". check_input($site[link]) ."'"); - } + if (abs($site[size] - strlen($data)) > 50) { + db_query("UPDATE site SET size = '". strlen($data) ."', timestamp = '". time() ."' WHERE link = '". check_input($site[link]) ."'"); } } else { @@ -186,4 +184,4 @@ function cloud_admin() { } } -?> \ No newline at end of file +?> -- cgit v1.2.3