WordPress.org

Plugin Directory

Changeset 1151280


Ignore:
Timestamp:
05/01/15 18:21:21 (3 years ago)
Author:
ChaseWiseman
Message:

Fix PHP error

Location:
simmer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simmer/tags/1.3.1/core/class-simmer-installer.php

    r1151275 r1151280  
    146146        if ( version_compare( $db_version, '1.1.0', '<' ) ) { 
    147147             
    148             if ( $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "simmer_recipe_items" ) ) { 
     148            if ( ! $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "simmer_recipe_items" ) ) { 
    149149                $upgrader->from_1_2(); 
    150150            } 
  • simmer/trunk/core/class-simmer-installer.php

    r1151271 r1151280  
    146146        if ( version_compare( $db_version, '1.1.0', '<' ) ) { 
    147147             
    148             if ( $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "simmer_recipe_items" ) ) { 
     148            if ( ! $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "simmer_recipe_items" ) ) { 
    149149                $upgrader->from_1_2(); 
    150150            } 
Note: See TracChangeset for help on using the changeset viewer.