Added true in array_slice to fix problem displaying tags

This commit is contained in:
Carlos Barberis 2009-08-27 01:23:17 +00:00
parent c37785c07b
commit 53bd0feb59
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class TagCloudWidget extends Widget {
//TODO: move some or all of the sorts to the database for more efficiency
if($this->Limit > 0){
uasort($allTags, array($this, "column_sort_by_popularity")); //sort by popularity
$allTags = array_slice($allTags, 0, $this->Limit);
$allTags = array_slice($allTags, 0, $this->Limit,true);
}
if($this->Sortby == "alphabet"){
$this->natksort($allTags);