Changeset 3402:8681798c6491 for inc/core/class.dc.core.php
- Timestamp:
- 11/11/16 00:10:02 (9 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.core.php
r3400 r3402 1017 1017 } 1018 1018 1019 if (!empty($params['blog_status']) && $this->auth->isSuperAdmin()) { 1020 $where = 'AND blog_status = '.(integer) $params['blog_status'].' '; 1021 } 1022 1023 if (!empty($params['blog_id'])) { 1024 $where .= "AND B.blog_id = '".$this->con->escape($params['blog_id'])."' "; 1019 if (isset($params['blog_status']) && $params['blog_status'] !== '' && $this->auth->isSuperAdmin()) { 1020 $where .= 'AND blog_status = '.(integer) $params['blog_status'].' '; 1021 } 1022 1023 if (isset($params['blog_id']) && $params['blog_id'] !== '') { 1024 if (!is_array($params['blog_id'])) { 1025 $params['blog_id'] = array($params['blog_id']); 1026 } 1027 $where .= 'AND B.blog_id '.$this->con->in($params['blog_id']); 1025 1028 } 1026 1029
Note: See TracChangeset
for help on using the changeset viewer.