diff --git a/gosa-plugins/fai/admin/fai/tabsVariable.inc b/gosa-plugins/fai/admin/fai/tabsVariable.inc
index 5b23577d9eabf3d4d74bbe2d9403d9217823db5f..5a636be08f206391d354ba452ea3d9924147e5d9 100644 (file)
if ($this->dn != $new_dn && $this->dn != "new"){
/* if( new_dn is subtree of this->dn ) */
- $cnt1 = count(split(",",$this->dn));
- $cnt2 = count(split(",",$new_dn));
+ $cnt1 = count(explode(",",$this->dn));
+ $cnt2 = count(explode(",",$new_dn));
if((strstr($new_dn,$this->dn))&&($cnt1<$cnt2)){
msg_dialog::display(_("Error"), _("Moving the tree failed. Destination tree is subtree of source tree."), ERROR_DIALOG);
}else{