Changeset 2690


Ignore:
Timestamp:
May 13, 2012, 8:34:07 PM (8 years ago)
Author:
teymour
Message:

Evite de faire des OR qd ce n'est pas nécessaire

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/commentaire/actions/components.class.php

    r2344 r2690  
    2424    $query = Doctrine::getTable('Commentaire')
    2525      ->createQuery('c');
    26     if ($type === 'ArticleLoi' || $type === 'Texteloi')
     26    if ($type === 'ArticleLoi' || $type === 'Titreloi')
    2727      $query->leftJoin('c.Objects co')
    2828        ->where('(c.object_type = ? AND c.object_id = ?) OR (co.object_type = "'.$type.'" AND co.object_id = ?)', array($type, $id, $id));
Note: See TracChangeset for help on using the changeset viewer.