Changeset 11851

Show
Ignore:
Timestamp:
08/30/07 11:33:21 (1 year ago)
Author:
bergie
Message:

Faster can_handle check using QB count, refs #102

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/net.nehmer.static/handler/view.php

    r5857 r11851  
    105105        $qb->add_constraint('name', '=', $args[0]); 
    106106        $qb->add_constraint('up', '=', 0); 
     107         
     108        if ($qb->count() == 0) 
     109        { 
     110            // No matching article 
     111            return false; 
     112        } 
     113         
    107114        $result = $qb->execute(); 
    108115