summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment/models/comment.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/comment/models/comment.php b/modules/comment/models/comment.php
index 891ffbce..69b8505e 100644
--- a/modules/comment/models/comment.php
+++ b/modules/comment/models/comment.php
@@ -60,10 +60,12 @@ class Comment_Model extends ORM {
// validate() is recursive, only modify the rules on the outermost call.
if (!$array) {
$this->rules = array(
- "guest_name" => array("callbacks" => array(array($this, "valid_author"))),
- "item_id" => array("callbacks" => array(array($this, "valid_item"))),
- "state" => array("rules" => array("Comment_Model::valid_state")),
- "text" => array("rules" => array("required")),
+ "guest_name" => array("callbacks" => array(array($this, "valid_author"))),
+ "guest_email" => array("rules" => array("email")),
+ "guest_url" => array("rules" => array("url")),
+ "item_id" => array("callbacks" => array(array($this, "valid_item"))),
+ "state" => array("rules" => array("Comment_Model::valid_state")),
+ "text" => array("rules" => array("required")),
);
}