From: Evan Prodromou Date: Fri, 17 Dec 2010 23:55:00 +0000 (-0500) Subject: change code order to make shorter lines X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=120802b807145db6419f964f3c5fecf49ea7411d;p=quix0rs-gnu-social.git change code order to make shorter lines --- diff --git a/lib/feedimporter.php b/lib/feedimporter.php index 0b94eeb9b8..e46858cc51 100644 --- a/lib/feedimporter.php +++ b/lib/feedimporter.php @@ -68,12 +68,13 @@ class FeedImporter extends QueueHandler try { $doc = DOMDocument::loadXML($xml); - if ($doc->documentElement->namespaceURI != Activity::ATOM || - $doc->documentElement->localName != 'feed') { + $feed = $doc->documentElement; + + if ($feed->namespaceURI != Activity::ATOM || + $feed->localName != 'feed') { throw new ClientException(_("Not an atom feed.")); } - $feed = $doc->documentElement; $author = ActivityUtils::getFeedAuthor($feed);