Dotclear

Changeset 1540:e74d2f707815


Ignore:
Timestamp:
07/27/13 15:08:05 (12 years ago)
Author:
Lepeltier kévin
Branch:
Ticket #1430
Message:

ticket #1430
test sur getPosts

"AND post_id not in (10,24,36) "

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r1228 r1540  
    705705     - limit: Limit parameter 
    706706     - sql_only : return the sql request instead of results. Only ids are selected 
     707     - exclude_id : (array) Exclude entries with given post_id 
    707708      
    708709     Please note that on every cat_id or cat_url, you can add ?not to exclude 
     
    798799               } 
    799800               $strReq .= 'AND P.post_id '.$this->con->in($params['post_id']); 
     801          } 
     802           
     803          if (!empty($params['exclude_id'])) { 
     804               $strReq .= 'AND post_id not in ('.implode(', ',$params['exclude_id']).') '; 
    800805          } 
    801806           
Note: See TracChangeset for help on using the changeset viewer.

Sites map