Ticket #1047: tags-emptylimit.patch
File tags-emptylimit.patch, 577 bytes (added by JcDenis, 15 years ago) |
---|
-
_public.php
195 195 196 196 $limit = abs((integer) $w->limit); 197 197 198 $params = array('meta_type' => 'tag'); 198 199 199 $rs = $core->meta->computeMetaStats( 200 $core->meta->getMetadata(array( 201 'meta_type' => 'tag', 202 'limit' => $limit))); 200 if ($limit) { 201 $params['limit'] = $limit; 202 } 203 203 204 $rs = $core->meta->computeMetaStats($core->meta->getMetadata($params)); 205 204 206 if ($rs->isEmpty()) { 205 207 return; 206 208 }