Issue 1913: Report invalid feed

This commit is contained in:
Michael Vogel 2015-10-04 00:28:15 +02:00
commit c0e277cec8
5 changed files with 12 additions and 5 deletions

View file

@ -570,7 +570,7 @@ function poco_last_updated($profile, $force = false) {
return false;
}
if (($data["poll"] == "") OR ($data["network"] == NETWORK_FEED)) {
if (($data["poll"] == "") OR (in_array($data["network"], array(NETWORK_FEED, NETWORK_PHANTOM)))) {
q("UPDATE `gcontact` SET `last_failure` = '%s' WHERE `nurl` = '%s'",
dbesc(datetime_convert()), dbesc(normalise_link($profile)));
return false;