From 1c28813a57b14c4296797b73d5343ba88c23ebc2 Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Fri, 8 Jun 2007 10:39:29 +0000 Subject: [PATCH] "KTS-2077" "Unit test failing for tagcloud triggers" Fixed. Checked that the arrays are correct. --- plugins/tagcloud/TagCloudPlugin.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/tagcloud/TagCloudPlugin.php b/plugins/tagcloud/TagCloudPlugin.php index 0e459f7..5fbedcf 100644 --- a/plugins/tagcloud/TagCloudPlugin.php +++ b/plugins/tagcloud/TagCloudPlugin.php @@ -229,9 +229,11 @@ class KTAddDocumentTrigger { { $oProxy = $aMetaData[0]; - if($oProxy->iId == $sTags){ + if($oProxy->iId == $sTags) + { $tagString = $aMetaData[1]; } + } } if($tagString != ''){ $words_table = KTUtil::getTableName('tag_words'); @@ -343,10 +345,12 @@ class KTEditDocumentTrigger { foreach($aMeta as $aMetaData) { $oProxy = $aMetaData[0]; - if($oProxy->iId == $sTags){ + if($oProxy->iId == $sTags) + { $tagString = $aMetaData[1]; break; - } + } + } } if($tagString != ''){ $words_table = KTUtil::getTableName('tag_words'); -- libgit2 0.21.4