Dotclear


Ignore:
Timestamp:
09/09/16 13:30:35 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

PHP 5.3+ : (expr1 ? expr1 : expr2) may be written → (expr1 ?: expr2)

Location:
plugins/maintenance
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/maintenance/_admin.php

    r3324 r3340  
    277277                    } 
    278278                    if (!empty($res_task)) { 
    279                          $desc = $group_obj->description ? $group_obj->description : $group_obj->summary; 
     279                         $desc = $group_obj->description ?: $group_obj->summary; 
    280280 
    281281                         $res_group .= 
     
    286286               } 
    287287               if (!empty($res_group)) { 
    288                     $desc = $tab_obj->description ? $tab_obj->description : $tab_obj->summary; 
     288                    $desc = $tab_obj->description ?: $tab_obj->summary; 
    289289 
    290290                    $res_tab .= 
  • plugins/maintenance/inc/tasks/class.dc.maintenance.indexcomments.php

    r2566 r3340  
    3535          $this->code = $this->core->indexAllComments($this->code, $this->limit); 
    3636 
    37           return $this->code ? $this->code : true; 
     37          return $this->code ?: true; 
    3838     } 
    3939 
  • plugins/maintenance/inc/tasks/class.dc.maintenance.indexposts.php

    r2044 r3340  
    3535          $this->code = $this->core->indexAllPosts($this->code, $this->limit); 
    3636 
    37           return $this->code ? $this->code : true; 
     37          return $this->code ?: true; 
    3838     } 
    3939 
  • plugins/maintenance/inc/tasks/class.dc.maintenance.synchpostsmeta.php

    r2044 r3340  
    3535          $this->code = $this->synchronizeAllPostsmeta($this->code, $this->limit); 
    3636 
    37           return $this->code ? $this->code : true; 
     37          return $this->code ?: true; 
    3838     } 
    3939 
Note: See TracChangeset for help on using the changeset viewer.

Sites map