Subversion Repositories eFlore/Applications.cel

Rev

Rev 3794 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3794 Rev 3909
Line 560... Line 560...
560
            foreach($mots_cles_tab as $mot_cle_item) {
560
            foreach($mots_cles_tab as $mot_cle_item) {
561
                $requete .= '(b.mots_cles_texte LIKE '.Cel::db()->proteger('%'.$mot_cle_item.'%').') AND ';
561
                $requete .= '(b.mots_cles_texte LIKE '.Cel::db()->proteger('%'.$mot_cle_item.'%').') AND ';
562
            }
562
            }
563
            $requete = '('.rtrim($requete, 'AND ').') ';
563
            $requete = '('.rtrim($requete, 'AND ').') ';
564
        } else {
564
        } else {
565
            $requete = "(b.mots_cles_texte LIKE ".Cel::db()->proteger('%'.$mot_cle.'%').') ';
565
            $requete = "(b.mots_cles_texte LIKE ".Cel::db()->proteger('%'.$mot_cle.'%').
-
 
566
            ' OR b.programme = '.Cel::db()->proteger($mot_cle).') ';
566
        }
567
        }
567
        return $requete;
568
        return $requete;
568
    }
569
    }
Line 569... Line 570...
569
    
570