summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: faeadff)
raw | patch | inline | side by side (parent: faeadff)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Dec 2007 08:37:44 +0000 (08:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Dec 2007 08:37:44 +0000 (08:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8124 594d385d-05f5-0310-b6e9-bd551577e9d8
index c96a0eda623374891b472e6a4ca2da6bd371abfe..801e4a7be0dcebc29dde3b0b3b3243199d9b8d6c 100644 (file)
}elseif(is_string($base[$key]) && $base[$key]!=$minus[$key]){
unset($base[$key]);
}elseif(is_array($base[$key])){
+ $tmp = array();
for($i = 0 ; $i < $base[$key]['count'] ; $i ++){
- if(isset($base[$key][$i]) && !in_array($base[$key][$i],$minus[$key])){
- $base[$key]['count'] --;
- if($base[$key]['count'] == 0){
- unset($base[$key]);
- break;
- }else{
- unset($base[$key][$i]);
- }
+ if(isset($base[$key][$i]) && in_array($base[$key][$i],$minus[$key])){
+ $tmp[] = $base[$key][$i];
}
}
+ if(count($tmp)){
+ $tmp['count'] = count($tmp);
+ $base[$key] = $tmp;
+ }else{
+ unset($base[$key]);
+ }
}
}
return($base);
index 9d4434090c60940007e89458bc600473da931d7f..458aa41e35c6111693d44e8bd7e14953008cc570 100644 (file)
foreach ($this->attributes as $val){
$found= array_key_ics($val, $this->multi_attrs);
if ($found != ""){
- $this->$val= $this->multi_attrs["$found"][0];
+ if(isset($this->multi_attrs["$found"][0])){
+ $this->$val= $this->multi_attrs["$found"][0];
+ }
}
}
}
diff --git a/gosa-core/plugins/personal/environment/class_environment.inc b/gosa-core/plugins/personal/environment/class_environment.inc
index 64f399457ad2000fbde0789af60ee305f3d45c20..25de2cb6d07c2c8f585989c147c199e71c12db16 100644 (file)
$this->gotoShares[$name] = $share;
}
}
+ foreach($this->gotoShares as $name => $share){
+ if(!isset($attrs['gotoShares'][$name])){
+ unset($this->gotoShares[$name]);
+ }
+ }
}