Ignore:
Timestamp:
Jul 14, 2010, 4:29:19 PM (11 years ago)
Author:
goya
Message:

correction bug quand loi mal loadée

Location:
cpc/trunk/project/apps/frontend/modules/loi
Files:
2 edited

Legend:

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

    r1164 r1242  
    2525        else $likestr .= ' OR '.$like;
    2626      }
    27       $admts->andWhere($likestr);
     27      if (!$likestr === '') $admts->andWhere($likestr);
    2828    }
    2929    foreach ($admts->fetchArray() as $adt) {
  • cpc/trunk/project/apps/frontend/modules/loi/templates/loiSuccess.php

    r1240 r1242  
    8484<?php if ((!$loi->parlementaire_id && $loi->expose) || $loi->texteloi_id == 2760) {
    8585  echo '<h2>Exposé des motifs&nbsp;:</h2>';
    86   if ($loi->parlementaire_id && $perso = $loi->getParlementaire() && $perso->getPageLink() && $photo = $perso->hasPhoto())
     86  if ($loi->parlementaire_id && $perso = $loi->getParlementaire()) if ($perso->getPageLink() && $photo = $perso->hasPhoto())
    8787    echo '<div class="intervenant"><a href="'.url_for($perso->getPageLink()).'"><img alt="'.$perso->nom.'" src="'.url_for('@resized_photo_parlementaire?height=70&slug='.$perso->slug).'" /></a></div>';
    8888  echo '<div class="loi">'.preg_replace('/\s+(:|;|\?|!)/', '&nbsp;\1', $loi->expose).'</div><br/>';
Note: See TracChangeset for help on using the changeset viewer.