Changeset 929

Show
Ignore:
Timestamp:
12/15/06 04:03:14 (2 years ago)
Author:
bchoate
Message:

Patch for BerkeleyDB to work around use of 'not' term. BugId: 39499

Files:

Legend:

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

    r928 r929  
    72157215    my(@a_data, %authors); 
    72167216    if ($is_power_edit) { 
     7217        my $bdb = $app->config('ObjectDriver') eq 'DBM'; 
    72177218        # FIXME: Scaling issue for lots of authors on one blog 
    7218         my $auth_iter = MT::Author->load_iter({type => AUTHOR, is_superuser => 1 }, { 
    7219             'not' => { is_superuser => 1 }
     7219        my $auth_iter = MT::Author->load_iter({type => AUTHOR, is_superuser => ( $bdb ? 0 : 1 ) }, { 
     7220            ($bdb ? () : (not => { is_superuser => 1 }))
    72207221            'join' => MT::Permission->join_on('author_id', 
    72217222                        { blog_id => $blog_id } ) });