From 90608d689a0f33f3c5b2189c3c5e830741933fed Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 16 Dec 2006 08:33:19 +0000 Subject: [PATCH] Do not allow to post empty comment git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1278 839d8a87-29fc-0310-9880-83ba4fa771e5 --- include/validations.inc.php | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.1.4