X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fevents.php;h=38244aa3a687cedc3576fe89393ac7ca2cff79fb;hb=1970c12b2252d9357f59598e69b6c6044ef4e4c2;hp=454a55c5c6660ce443d982b750303c9728f16c24;hpb=d232ae0dd332202cffcde4beee0ff64d7d77b60a;p=platal.git diff --git a/modules/events.php b/modules/events.php index 454a55c..38244aa 100644 --- a/modules/events.php +++ b/modules/events.php @@ -200,7 +200,9 @@ class EventsModule extends PLModule $page->assign('valid_mesg', $valid_mesg); $page->assign('action', strtolower($action)); - if ($action == 'Confirmer') { + if ($action && (!trim($texte) || !trim($titre))) { + $page->trig("L'article doit avoir un titre et un contenu"); + } elseif ($action == 'Confirmer') { $texte = $texte_catch_url; require_once 'validations.inc.php'; $evtreq = new EvtReq($titre, $texte, $promo_min, $promo_max,