Changeset 3874:ab8368569446 for inc/core/class.dc.postmedia.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.postmedia.php
r3731 r3874 37 37 @return <b>array</b> Array of fileItems 38 38 */ 39 public function getPostMedia($params = array())39 public function getPostMedia($params = []) 40 40 { 41 41 $strReq = … … 55 55 } 56 56 57 $where = array();57 $where = []; 58 58 if (isset($params['post_id'])) { 59 59 $where[] = "PM.post_id " . $this->con->in($params['post_id']); … … 94 94 $media_id = (integer) $media_id; 95 95 96 $f = $this->getPostMedia( array('post_id' => $post_id, 'media_id' => $media_id, 'link_type' => $link_type));96 $f = $this->getPostMedia(['post_id' => $post_id, 'media_id' => $media_id, 'link_type' => $link_type]); 97 97 98 98 if (!$f->isEmpty()) { … … 157 157 $rs = $this->con->select($strReq); 158 158 159 $res = array();159 $res = []; 160 160 161 161 while ($rs->fetch()) {
Note: See TracChangeset
for help on using the changeset viewer.