Dotclear

Changeset 417:876968254009 for inc/core


Ignore:
Timestamp:
06/27/11 11:09:30 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
formfilters
Message:

form filters intermediate commit, added in clause in dcBlog::getPosts user_id parameter, as well as user_id_not parameter.

File:
1 edited

Legend:

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

    r191 r417  
    736736           
    737737          if (!empty($params['user_id'])) { 
    738                $strReq .= "AND U.user_id = '".$this->con->escape($params['user_id'])."' "; 
     738               if (!empty($params['user_id_not'])) { 
     739                    $not = "NOT "; 
     740               } else { 
     741                    $not = ""; 
     742               } 
     743               $strReq .= "AND U.user_id ".$not.$this->con->in($params['user_id'])." "; 
    739744          } 
    740745           
Note: See TracChangeset for help on using the changeset viewer.

Sites map