Changeset 992

Show
Ignore:
Timestamp:
12/28/06 18:42:32 (2 years ago)
Author:
bchoate
Message:

Fixed author method return value when author_id was 0 or unset. BugId: 45896

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/Entry.pm

    r910 r992  
    187187    my $entry = shift; 
    188188    $entry->cache_property('author', sub { 
     189        return undef unless $entry->author_id; 
    189190        my $req = MT::Request->instance(); 
    190191        my $author_cache = $req->stash('author_cache');