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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/categories.php

    r3210 r3340  
    4747          $mov_cat = (int) $_POST['mov_cat'][$cat_id]; 
    4848 
    49           $mov_cat = $mov_cat ? $mov_cat : null; 
     49          $mov_cat = $mov_cat ?: null; 
    5050          if ($mov_cat !== null) { 
    5151               $c = $core->blog->getCategory($mov_cat); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map