Commit f442a214f1370fe7bee8dd9b084a0ce133c2f9d5

Authored by kevin_fourie
1 parent aff54aa6

Merged in from STABLE trunk...

KTS-3608
"After upgrade from 337OSS>346OSS and 31bOSS>346OSS to 353 OSS only the tags for the doc added after the 353 upgrade is listed in the Tag Cloud dashlet."
Fixed. Check for fields / fieldset returns the id if it is numeric.

Committed by: Megan Watson
Reviewed by: Conrad Vermeulen


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.3-Release-Branch@9170 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/tagcloud/TagCloudPlugin.php
... ... @@ -156,7 +156,7 @@ require_once(KT_LIB_DIR . '/templating/templating.inc.php');
156 156 if (PEAR::isError($sTag)) {
157 157 return false;
158 158 }
159   - if(!is_numeric($sTag)){
  159 + if(is_numeric($sTag)){
160 160 return $sTag;
161 161 }else{
162 162 return false;
... ... @@ -176,7 +176,7 @@ require_once(KT_LIB_DIR . '/templating/templating.inc.php');
176 176 if (PEAR::isError($iFieldset)) {
177 177 return false;
178 178 }
179   - if(!is_numeric($iFieldset)){
  179 + if(is_numeric($iFieldset)){
180 180 return $iFieldset;
181 181 }else{
182 182 return false;
... ...