Do not allow to post empty comment
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 16 Dec 2006 08:33:19 +0000 (08:33 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 16 Dec 2006 08:33:19 +0000 (08:33 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1278 839d8a87-29fc-0310-9880-83ba4fa771e5

include/validations.inc.php

index aeb8b4b..95d57c0 100644 (file)
@@ -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