Make WordPress Core


Ignore:
Timestamp:
03/23/2007 12:59:21 AM (17 years ago)
Author:
matt
Message:

(int)er the dragon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r5037 r5087  
    5757    global $wpdb, $blog_id;
    5858    if ( empty($id) )
    59         $id = $blog_id;
     59        $id = (int) $blog_id;
    6060    $users = $wpdb->get_results( "SELECT user_id, user_login, display_name, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE " . $wpdb->users . ".ID = " . $wpdb->usermeta . ".user_id AND meta_key = '" . $wpdb->prefix . "capabilities' ORDER BY {$wpdb->usermeta}.user_id" );
    6161    return $users;
     
    172172    $userdata = $user->data;
    173173    $user_login = $user->user_login;
    174     $user_level = $user->user_level;
    175     $user_ID    = $user->ID;
     174    $user_level = (int) $user->user_level;
     175    $user_ID    = (int) $user->ID;
    176176    $user_email = $user->user_email;
    177177    $user_url   = $user->user_url;
Note: See TracChangeset for help on using the changeset viewer.