diff --git a/ecrire/public/criteres.php b/ecrire/public/criteres.php
index f2e7d76535be73ce5554e18ac8092f9e41699803..2f1ba74545f6ddf6c75e5cc51ce7861be245491f 100644
--- a/ecrire/public/criteres.php
+++ b/ecrire/public/criteres.php
@@ -33,10 +33,8 @@ function critere_racine_dist($idb, &$boucles, $crit) {
 		$exceptions_des_tables[$boucle->id_table]['id_parent'] :
 		'id_parent';
 
-	if ($not)
-		return (array('zbug_critere_inconnu', array('critere' => $not . $crit->op)));
-
-	$boucle->where[]= array("'='", "'$boucle->id_table." . "$id_parent'", 0);
+	$c = array("'='", "'$boucle->id_table." . "$id_parent'", 0);
+	$boucle->where[]= ($crit->not ? array("'NOT'", $c) : $c);
 }
 
 // {exclus}