Changeset 2986

Show
Ignore:
Timestamp:
08/27/08 00:57:16 (3 months ago)
Author:
bchoate
Message:

Better testing of failure when author object fails to load by username.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/MT/App/ActivityFeeds.pm

    r2877 r2986  
    6060        if $@; 
    6161    my $author = $user_class->load( { name => $username, type => AUTHOR } ); 
    62     return undef unless $author->is_active; 
     62    return undef unless $author && $author->is_active; 
    6363    if ( $author && ( ( $author->api_password || '' ) ne '' ) ) { 
    6464        my $auth_token