Changeset 45264

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

alpha

Files:

Legend:

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

    r45263 r45264  
    562562            global $wpdb; 
    563563 
    564             return $wpdb->get_var("SELECT name FROM $this->hits_terms WHERE ". $wpdb->prepare( "term_id = %s", (int) $id )); 
     564            return( (int) $wpdb->get_var("SELECT name FROM $this->hits_terms WHERE ". $wpdb->prepare( "term_id = %s", (int) $id )) ); 
    565565      } 
    566566       
     
    568568            global $wpdb; 
    569569       
    570             return $wpdb->get_var("SELECT term_id FROM $this->hits_terms WHERE ". $wpdb->prepare( "name = %s", substr( $term, 0, 255 ))); 
     570            return( (int) $wpdb->get_var("SELECT term_id FROM $this->hits_terms WHERE ". $wpdb->prepare( "name = %s", substr( $term, 0, 255 ))) ); 
    571571      } 
    572572       
     
    580580            } 
    581581       
    582             return( $term_id ); 
     582            return( (int) $term_id ); 
    583583      } 
    584584