function mots_techniques_pre_boucle($loop){ if ($loop->type_requete == 'groupes_mots') { $table_name = $loop->id_table; $technical_kw = $table_name .'.technique'; // Select only the loop without the "technical" keyword if (!isset($loop->modificateur['criteres']['technique']) && !isset($loop->modificateur['tout'])) { $loop->where[]= array("'='", "'$technical_kw'", "'\"\"'"); } } return $loop; }