Changeset 340:7071ef8f7181
- Timestamp:
- 06/06/11 22:01:35 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.blog.php
r337 r340 727 727 if (isset($params['post_type'])) 728 728 { 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']); 734 730 } 735 731 else … … 1784 1780 if (!empty($params['post_type'])) 1785 1781 { 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']); 1791 1783 } 1792 1784
Note: See TracChangeset
for help on using the changeset viewer.