diff --git a/include/sieve/class_sieveElement_Comment.inc b/include/sieve/class_sieveElement_Comment.inc
index d3f6747dd5eaa7f18c968030473524688990e394..bad1dce113a80a9b8715f3cf13b6046070aa5f2e 100644 (file)
function sieve_comment($data,$object_id)
{
$this->object_id = $object_id;
+
+ if($data == NULL){
+ $data = array('ELEMENTS' => array(array('class' => "quoted-string" ,"text" => _("Your comment here"))));
+ }
+
foreach($data['ELEMENTS'] as $node){
$this->data .= $node['text'];
}
}
+ function check()
+ {
+ return(array()) ;
+ }
+
function save_object()
{
if(isset($_POST['comment_'.$this->object_id])){
- $cm = $_POST['comment_'.$this->object_id];
+ $cm = stripslashes( $_POST['comment_'.$this->object_id]);
$this->data = "/*".$cm."*/";
}
}