parent
c54c4f86e0
commit
d159f7abc8
|
@ -55,12 +55,10 @@ 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]) ."'");
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
watchdog("warning", "cloud: failed to syndicate from '$site[name]'". ($errstr ? ": $errstr" : ""));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue