Changeset 45267
- Timestamp:
- 05/11/08 17:44:46 (2 months ago)
- Files:
-
- bsuite/trunk/core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bsuite/trunk/core.php
r45264 r45267 575 575 576 576 if ( !$term_id = $this->bstat_is_term( $term )) { 577 if ( false === $wpdb->insert( $this->hits_terms, array( 'name' => $term ))) 578 return new WP_Error('db_insert_error', __('Could not insert term into the database'), $wpdb->last_error); 577 if ( false === $wpdb->insert( $this->hits_terms, array( 'name' => $term ))){ 578 new WP_Error('db_insert_error', __('Could not insert term into the database'), $wpdb->last_error); 579 return( 1 ); 580 } 579 581 $term_id = (int) $wpdb->insert_id; 580 582 }
