From: x2003bruneau Date: Sat, 16 Dec 2006 08:33:19 +0000 (+0000) Subject: Do not allow to post empty comment X-Git-Tag: xorg/0.9.13~188 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=90608d689a0f33f3c5b2189c3c5e830741933fed;p=platal.git Do not allow to post empty comment git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1278 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/validations.inc.php b/include/validations.inc.php index aeb8b4b..95d57c0 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -178,6 +178,9 @@ class Validate return true; } } + if (!strlen(trim(Env::v('comm')))) { + return true; + } $this->comments[] = Array(S::v('bestalias'), Env::v('comm'), $formid); // envoi d'un mail à hotliners