Changeset 45267

Show
Ignore:
Timestamp:
05/11/08 17:44:46 (2 months ago)
Author:
misterbisson
Message:

alpha

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bsuite/trunk/core.php

    r45264 r45267  
    575575       
    576576            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                  } 
    579581                  $term_id = (int) $wpdb->insert_id; 
    580582            }