37c37 < $c_token_id = db_prepare_int( $p_token_id ); --- > $c_token_id = (int) $p_token_id; 71,72c71,72 < $c_type = db_prepare_int( $p_type ); < $c_user_id = db_prepare_int( $p_user_id == null ? auth_get_current_user_id() : $p_user_id ); --- > $c_type =(int) $p_type; > $c_user_id = (int) ( $p_user_id == null ? auth_get_current_user_id() : $p_user_id ); 130c130 < $c_token_id = db_prepare_int( $p_token_id ); --- > $c_token_id = (int) $p_token_id; 149,150c149,150 < $c_type = db_prepare_int( $p_type ); < $c_user_id = db_prepare_int( $p_user_id == null ? auth_get_current_user_id() : $p_user_id ); --- > $c_type = (int) $p_type; > $c_user_id = (int) ( $p_user_id == null ? auth_get_current_user_id() : $p_user_id ); 170c170 < $c_user_id = db_prepare_int( $p_user_id ); --- > $c_user_id = (int) $p_user_id; 193,194c193,195 < $c_type = db_prepare_int( $p_type ); < $c_timestamp = db_now(); --- > $c_type = (int) $p_type; > $c_value = (string) $p_value; > $c_timestamp = db_now(); 196c197 < $c_user_id = db_prepare_int( $p_user_id == null ? auth_get_current_user_id() : $p_user_id ); --- > $c_user_id = (int) ( $p_user_id == null ? auth_get_current_user_id() : $p_user_id ); 203c204 < db_query_bound( $t_query, Array( $c_type, $p_value, $c_timestamp, $c_expiry, $c_user_id ) ); --- > db_query_bound( $t_query, Array( $c_type, $c_value, $c_timestamp, $c_expiry, $c_user_id ) ); 216c217,218 < $c_token_id = db_prepare_int( $p_token_id ); --- > $c_token_id = (int) $p_token_id; > $c_value = (string) $p_value; 224c226 < db_query_bound( $t_query, Array( $p_value, $c_expiry, $c_token_id ) ); --- > db_query_bound( $t_query, Array( $c_value, $c_expiry, $c_token_id ) ); 235c237 < $c_token_type = db_prepare_int( $p_token_type ); --- > $c_token_type = (int) $p_token_type; 259c261 < $c_token_type = db_prepare_int( $p_token_type ); --- > $c_token_type = (int) $p_token_type;