Dotclear

Changeset 340:7071ef8f7181


Ignore:
Timestamp:
06/06/11 22:01:35 (13 years ago)
Author:
Osku <popech@…>
Branch:
default
Message:

Cleaned ->con->in(post_type? in dcBlog

File:
1 edited

Legend:

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

    r337 r340  
    727727          if (isset($params['post_type'])) 
    728728          { 
    729                if (is_array($params['post_type']) && !empty($params['post_type'])) { 
    730                     $strReq .= 'AND post_type '.$this->con->in($params['post_type']); 
    731                } elseif ($params['post_type'] != '') { 
    732                     $strReq .= "AND post_type = '".$this->con->escape($params['post_type'])."' "; 
    733                } 
     729               $strReq .= 'AND post_type '.$this->con->in($params['post_type']); 
    734730          } 
    735731          else 
     
    17841780          if (!empty($params['post_type'])) 
    17851781          { 
    1786                if (is_array($params['post_type']) && !empty($params['post_type'])) { 
    1787                     $strReq .= 'AND post_type '.$this->con->in($params['post_type']); 
    1788                } else { 
    1789                     $strReq .= "AND post_type = '".$this->con->escape($params['post_type'])."' "; 
    1790                } 
     1782               $strReq .= 'AND post_type '.$this->con->in($params['post_type']); 
    17911783          } 
    17921784           
Note: See TracChangeset for help on using the changeset viewer.

Sites map