From ad59a3c54c5d26100e793b741ff7d65aa1e091cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 26 Aug 2012 20:23:48 +0000 Subject: [PATCH] MINOR: Copy&pastwe mistage fixed --- .../class_NodeAnnouncementMessageAnswerHelper.php | 2 +- .../class_NodeRequestNodeListMessageAnswerHelper.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php b/application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php index db277f595..77a24360e 100644 --- a/application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php +++ b/application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php @@ -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 diff --git a/application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php b/application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php index a303aad55..6926ed28f 100644 --- a/application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php +++ b/application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php @@ -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 -- 2.39.5