Skip to:
Content

BuddyPress.org

Ticket #3873: 3873.03.patch

File 3873.03.patch, 538 bytes (added by boonebgorges, 10 years ago)
  • bp-core/bp-core-loader.php

    diff --git bp-core/bp-core-loader.php bp-core/bp-core-loader.php
    index 9cff077..b75e8a6 100644
    class BP_Core extends BP_Component { 
    167167                $current_user            = wp_get_current_user();
    168168
    169169                // The user ID of the user who is currently logged in.
    170                 $bp->loggedin_user->id   = $current_user->ID;
     170                $bp->loggedin_user->id   = isset( $current_user->ID ) ? $current_user->ID : 0;
    171171
    172172                /** Avatars ***********************************************************/
    173173