Skip to content
Extraits de code Groupes Projets
Valider d0184e48 rédigé par Fil's avatar Fil
Parcourir les fichiers

debut_id_forum était cassée dans le controle_forum

parent 84e5d779
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -232,12 +232,13 @@ function exec_controle_forum_dist()
}
list($from,$where) = critere_statut_controle_forum($page, $id_rubrique);
// Si un id_controle_forum est demande, on adapte le debut
if ($debut_id_forum = intval($debut_id_forum)) {
$d = spip_fetch_array(spip_query("SELECT date_heure FROM spip_forum WHERE id_forum=$debut_id_forum"));
$debut = spip_query("SELECT COUNT(*) AS n FROM $from " . (!$where ? '' : "WHERE $where ") . (!$d ? '' : (" AND F.date_heure > '".$d['date_heure']."'")));
$debut = $debut['n'];
}
// Si un id_controle_forum est demande, on adapte le debut
if ($debut_id_forum = intval($debut_id_forum)
AND $d = spip_fetch_array(spip_query("SELECT date_heure FROM spip_forum WHERE id_forum=$debut_id_forum"))) {
$debut = spip_fetch_array(spip_query($q = "SELECT COUNT(*) AS n FROM $from " . (!$where ? '' : "WHERE $where ") . (!$d ? '' : (" AND F.date_heure > '".$d['date_heure']."'"))));
$debut = $debut['n'];
}
$debut= intval($debut);
$pack = 20; // nb de forums affiches par page
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter