Advertisement
Guest User

Untitled

a guest
Jul 6th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.83 KB | None | 0 0
  1. Index: agenda_autoriser.php
  2. ===================================================================
  3. --- agenda_autoriser.php        (revision 98710)
  4. +++ agenda_autoriser.php        (working copy)
  5. @@ -42,7 +42,7 @@
  6.         if (autoriser('modifier', 'article', $id, $qui)) {
  7.                 $afficher = true;
  8.                 // un article avec des evenements a toujours le droit
  9. -               if (!sql_countsel('spip_evenements', array('id_article='.intval($id)), "statut IN 'prop','publie")) {
  10. +               if (!sql_countsel('spip_evenements', array('id_article='.intval($id)), "statut IN 'prop','publie'")) {
  11.                         // si au moins une rubrique a le flag agenda
  12.                         if (sql_countsel('spip_rubriques', 'agenda=1')) {
  13.                                 // alors il faut le flag agenda dans cette branche !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement