Dotclear

Changeset 3481:578dcd064a20


Ignore:
Timestamp:
12/29/16 07:24:57 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.11
Message:

using $var=[]; is not allowed with PHP version < 5.4

File:
1 edited

Legend:

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

    r3414 r3481  
    5757          } 
    5858 
    59           $where=[]; 
     59          $where = array(); 
    6060          if (isset($params['post_id'])) { 
    61                $where[]="PM.post_id ".$this->con->in($params['post_id']); 
     61               $where[] = "PM.post_id ".$this->con->in($params['post_id']); 
    6262          } 
    6363          if (isset($params['media_id'])) { 
    64                $where[]="M.media_id ".$this->con->in($params['media_id']); 
     64               $where[] = "M.media_id ".$this->con->in($params['media_id']); 
    6565          } 
    6666          if (isset($params['media_path'])) { 
    67                $where[]="M.media_path ".$this->con->in($params['media_path']); 
     67               $where[] = "M.media_path ".$this->con->in($params['media_path']); 
    6868          } 
    6969          if (isset($params['link_type'])) { 
    70                $where[]="PM.link_type ".$this->con->in($params['link_type']); 
     70               $where[] = "PM.link_type ".$this->con->in($params['link_type']); 
    7171          } else { 
    72                $where[]="PM.link_type='attachment'"; 
     72               $where[] = "PM.link_type='attachment'"; 
    7373          } 
    7474 
Note: See TracChangeset for help on using the changeset viewer.

Sites map