Don't allow users to post blank comments.

git-svn-id: svn://10.0.0.236/trunk@218668 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rflint%ryanflint.com 2007-01-19 09:16:52 +00:00
parent 870833659a
commit 840490b0a9

View File

@ -38,7 +38,7 @@ class Comment extends AppModel {
var $name = 'Comment';
var $validate = array(
'text' => VALID_NOT_EMPTY
'text' => "/^\S/"
);
function canComment($pid, $uid) {