index d6a30a0e95bdbb42f8de8435567c443a2910a30d..901133c6216a60096187c842c51a67dd1444ded6 100644 (file)
}
}
- /* Parse mynetworks */
- if(isset($this->attrs['postfix-mynetworks'])){
- if(is_array($this->attrs['postfix-mynetworks'])){
- unset($this->attrs['postfix-mynetworks']['count']);
- $tmp="";
- foreach($this->attrs['postfix-mynetworks'] as $tm){
- $tmp.=$tm.";";
- }
- $this->postfix_mynetworks = $tmp;
- }
- }else{
- $this->postfix_mynetworks="";
- }
}
$this->kolabHost[]= $this->cn;
}
- /* Create mynetworks array by splitting the string with ; */
- $tmp = split(";",$this->postfix_mynetworks);
- $this->postfix_mynetworks = array();
- foreach($tmp as $tm){
- trim($tm);
- if(!empty($tm)){
- $this->postfix_mynetworks[]=$tm;
- }
- }
- $this->attrs['postfix_mynetworks']=$this->postfix_mynetworks;
-
/* Call parents save to prepare $this->attrs */
plugin::save();