Changeset 11898

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

Can't run count() and execute() in same QB

Files:

Legend:

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

    r11869 r11898  
    106106        $qb->add_constraint('up', '=', 0); 
    107107        $qb->set_limit(1); 
    108          
    109         if ($qb->count() == 0) 
    110         { 
    111             // No matching article 
    112             return false; 
    113         } 
    114108         
    115109        $result = $qb->execute();