Dotclear

Ticket #1047: tags-emptylimit.patch

File tags-emptylimit.patch, 577 bytes (added by JcDenis, 15 years ago)
  • _public.php

     
    195195           
    196196          $limit = abs((integer) $w->limit); 
    197197           
     198          $params = array('meta_type' => 'tag'); 
    198199           
    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          } 
    203203           
     204          $rs = $core->meta->computeMetaStats($core->meta->getMetadata($params)); 
     205           
    204206          if ($rs->isEmpty()) { 
    205207               return; 
    206208          } 

Sites map