Check the global contacts every 90 days/Better handling in item creation

This commit is contained in:
Michael Vogel 2016-04-23 10:46:16 +02:00 committed by Roland Haeder
commit cea445b6f3
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
4 changed files with 79 additions and 26 deletions

View file

@ -47,7 +47,7 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) {
}
// Is it Atom?
if ($xpath->query('/atom:feed/atom:entry')->length > 0) {
if ($xpath->query('/atom:feed')->length > 0) {
$alternate = $xpath->query("atom:link[@rel='alternate']")->item(0)->attributes;
if (is_object($alternate))
foreach($alternate AS $attributes)