- cloud.module:

+ small bugfix
3-00
Dries Buytaert 2001-08-05 08:29:27 +00:00
parent c54c4f86e0
commit d159f7abc8
1 changed files with 3 additions and 5 deletions

View File

@ -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() {
}
}
?>
?>