diff --git a/include/sieve/class_sieveElement_Require.inc b/include/sieve/class_sieveElement_Require.inc
index 0a781daadee488c6571210dfbf1a534f512785e6..9ef9e2985849b2d1e92bcba2759a707bca0ceeaa 100644 (file)
var $data = array();
var $object_id = -1;
var $parent = NULL;
+ var $skip_save_object =FALSE;
function sieve_require($data,$object_id,$parent)
{
if(!in_array($str,$current)){
$this->data[] = $str;
}
- $this->data = array_unique($this->data);;
+ $this->data = array_unique($this->data);
+ $this->skip_save_object = TRUE;
}
function save_object()
{
+ if($this->skip_save_object){
+ $this->skip_save_object = FALSE;
+ return;
+ }
+
/* Get the values should check for, they are seperated by , */
if(isset($_POST['require_'.$this->object_id])){
$vls = stripslashes($_POST['require_'.$this->object_id]);