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
  • plugins/importExport/inc/class.dc.import.wp.php

    r2566 r3340  
    658658          } 
    659659          $cur->post_type         = $rs->post_type; 
    660           $cur->post_password     = $rs->post_password ? $rs->post_password : NULL; 
     660          $cur->post_password     = $rs->post_password ?: NULL; 
    661661          $cur->post_open_comment = $rs->comment_status == 'open' ? 1 : 0; 
    662662          $cur->post_open_tb      = $rs->ping_status == 'open' ? 1 : 0; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map