Make WordPress Core


Ignore:
Timestamp:
02/02/2008 06:42:09 PM (17 years ago)
Author:
ryan
Message:

Some notice fixes from Nazgul. fixes #3155

File:
1 edited

Legend:

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

    r6644 r6711  
    217217    $userdata = $user->data;
    218218    $user_login = $user->user_login;
    219     $user_level = (int) $user->user_level;
     219    $user_level = (int) isset($user->user_level) ? $user->user_level : 0;
    220220    $user_ID    = (int) $user->ID;
    221221    $user_email = $user->user_email;
Note: See TracChangeset for help on using the changeset viewer.