]> git.mxchange.org Git - hub.git/commitdiff
MINOR: Copy&pastwe mistage fixed
authorRoland Häder <roland@mxchange.org>
Sun, 26 Aug 2012 20:23:48 +0000 (20:23 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 26 Aug 2012 20:23:48 +0000 (20:23 +0000)
application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php
application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php

index db277f595ba61a0a5ebff1bb8ec0567f3350e6ed..77a24360e3754dfca74768d5c16858b38ddd0514 100644 (file)
@@ -80,7 +80,7 @@ class NodeAnnouncementMessageAnswerHelper extends BaseHubAnswerHelper implements
        }
 
        /**
-        * Do the helped attempt by delivering a package to ourselfs
+        * Send out announcement answer package
         *
         * @param       $nodeInstance   An instance of a NodeHelper class
         * @return      void
index a303aad557bc16963b277225d5336a2193186e0d..6926ed28f07a8b2154419913c69703182d2b46d4 100644 (file)
@@ -75,12 +75,18 @@ class NodeRequestNodeListMessageAnswerHelper extends BaseHubAnswerHelper impleme
                // Read the XML descriptor
                $templateInstance->loadXmlTemplate();
 
+               // "Cache" entries instance for next foreach loop
+               $entriesInstance = $templateInstance->getTemplateInstance();
+
+               // Is must not be NULL (then it can only be a template instance)
+               assert(!is_null($entriesInstance));
+
                // Render the XML content
                $templateInstance->renderXmlContent();
        }
 
        /**
-        * Do the helped attempt by delivering a package to ourselfs
+        * Send out request-node-list answer package
         *
         * @param       $nodeInstance   An instance of a NodeHelper class
         * @return      void