diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index 650bf056f989d4d25c2e37f6b3170d499bfcf0f7..2cbfd59a562ef8024bbee1428532c27b2534535c 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -1134,7 +1134,7 @@ function afficher_forum($request, $retour, $arg, $controle_id_article = false) { OR ($statut=="publie" AND $id_parent > 0))) { $res .= afficher_forum_thread($row, $controle_id_article, $compteur_forum, $nb_forum, $thread, $retour, $arg) - . afficher_forum(spip_query("SELECT * FROM spip_forum WHERE id_parent='" . $row['id_forum'] . "'" . ($controle_id_article ? " AND statut<>'off'" : '') . " ORDER BY date_heure"), $retour, $arg, $controle_id_article); + . afficher_forum(spip_query("SELECT * FROM spip_forum WHERE id_parent='" . $row['id_forum'] . "'" . ($controle_id_article ? '':" AND statut<>'off'") . " ORDER BY date_heure"), $retour, $arg, $controle_id_article); } $thread[$compteur_forum]++; }