Show
Ignore:
Timestamp:
04/13/08 04:41:46 (20 months ago)
Author:
bchoate
Message:

Applied patches from Ogawa-san to add an optimized 'exist' method for testing for existing rows. BugId:69661

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-34/lib/MT/App.pm

    r1823 r1873  
    16491649    } 
    16501650 
    1651     my $existing = MT::Author->count( { name => $name } ); 
     1651    my $existing = MT::Author->exist( { name => $name } ); 
    16521652    return $app->error($app->translate("A user with the same name already exists.")) 
    16531653        if $existing;