Make WordPress Core


Ignore:
Timestamp:
03/19/2010 09:15:00 PM (15 years ago)
Author:
nacin
Message:

Remove unnecessary ternary operators such as (expr) ? true : false.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r13733 r13769  
    564564    // MAX(post_date_gmt) can't be '0000-00-00 00:00:00'
    565565    // <michel_v> I just slapped myself silly for not thinking about it earlier
    566     $got_gmt_fields = ($wpdb->get_var("SELECT MAX(post_date_gmt) FROM $wpdb->posts") == '0000-00-00 00:00:00') ? false : true;
     566    $got_gmt_fields = ! ($wpdb->get_var("SELECT MAX(post_date_gmt) FROM $wpdb->posts") == '0000-00-00 00:00:00');
    567567
    568568    if (!$got_gmt_fields) {
Note: See TracChangeset for help on using the changeset viewer.