WordPress.org

Plugin Directory

Changeset 161074


Ignore:
Timestamp:
10/06/09 23:58:50 (5 years ago)
Author:
ikailo
Message:
 
Location:
wp-hive/tags/0.5/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-hive/tags/0.5/includes/class.wphive.php

    r161068 r161074  
    163163        $id = $id == -1 ? $current_site->id : $id; 
    164164        $prefix = $this->get_prefix_by_id($id); 
     165        $suppress = $wpdb->suppress_errors(); 
    165166        $installed = $wpdb->get_var("SELECT option_value FROM ".$prefix."options WHERE option_name = 'siteurl'"); 
     167        $wpdb->suppress_errors($suppress); 
    166168        return !empty($installed); 
    167169    } 
  • wp-hive/tags/0.5/includes/functions.php

    r160829 r161074  
    1515    // Too early. Gotta hack it. 
    1616    // TODO: Slow. Need to use cache / better algorithm 
     17        $suppress = $wpdb->suppress_errors(); 
    1718        $active_plugins = $wpdb->get_var("SELECT option_value FROM ".$table_prefix."options WHERE option_name = 'active_plugins' LIMIT 1"); 
    1819        $active_plugins = unserialize($active_plugins); 
     
    2526            $wpdb->query( $wpdb->prepare( "UPDATE ".$table_prefix."options SET option_value = %s WHERE option_name = %s", $active_plugins, 'active_plugins' ) ); 
    2627        } 
     28        $wpdb->suppress_errors($suppress); 
    2729    } 
    2830} 
Note: See TracChangeset for help on using the changeset viewer.