Don't allow users to post blank comments.

This commit is contained in:
rflint%ryanflint.com 2007-01-19 09:16:52 +00:00
parent fe5c77c99a
commit 72be962dad

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) {