diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc
index 0fea778601cf5f5981e43e13b1ae459a310ff390..b5082aad9bc823715d31c7e1b024d52ad230ca0a 100644 (file)
/* Element selected */
if(isset($_POST['element_type']) && isset($element_types[$_POST['element_type']])
- || isset($_POST['element_type']) &&in_array($_POST['element_type'],array("sieve_else","sieve_elsif"))){
+ || isset($_POST['element_type']) &&in_array_strict($_POST['element_type'],array("sieve_else","sieve_elsif"))){
$this->add_element_type = $_POST['element_type'];
}
*/
foreach($this->current_handler->tree_->pap as $key => $obj){
- if($obj->object_id == $this->add_new_id && in_array(get_class($obj),array("sieve_if","sieve_elsif"))){
+ if($obj->object_id == $this->add_new_id && in_array_strict(get_class($obj),array("sieve_if","sieve_elsif"))){
/* Get block start/end */
$end_id = $this->current_handler->tree_->get_block_end($key);
*/
foreach($this->current_handler->tree_->pap as $key => $obj){
- if($obj->object_id == $id && in_array(get_class($obj),array("sieve_if","sieve_elsif"))){
+ if($obj->object_id == $id && in_array_strict(get_class($obj),array("sieve_if","sieve_elsif"))){
/* Get block start/end */
$end_id = $this->current_handler->tree_->get_block_end($key);
}else{
/* Allow adding elsif above elsif */
- if(in_array(get_class($obj),array("sieve_elsif"))){
+ if(in_array_strict(get_class($obj),array("sieve_elsif"))){
$element_types['sieve_elsif'] = _("Else If");
}
}
$this->current_handler->save_object();
$Mode = $this->scripts[$this->current_script]['MODE'];
$skip_mode_change = false;
- if(in_array($Mode,array("Source-Only","Source"))){
+ if(in_array_strict($Mode,array("Source-Only","Source"))){
if(isset($_POST['script_contents'])){
$sc = stripslashes($_POST['script_contents']);
$this->scripts[$this->current_script]['SCRIPT'] = $sc;
}
}
}
- if(in_array($Mode,array("Structured"))){
+ if(in_array_strict($Mode,array("Structured"))){
$sc = $this->current_handler->get_sieve_script();
$this->scripts[$this->current_script]['SCRIPT'] = $sc;
$p = new My_Parser($this);