summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d8f38ca)
raw | patch | inline | side by side (parent: d8f38ca)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Feb 2006 08:29:52 +0000 (08:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Feb 2006 08:29:52 +0000 (08:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2715 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_ldap.inc | patch | blob | history | |
include/php_setup.inc | patch | blob | history |
diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index 4c2b1b49883cf5852d1113a7f30ec154dee26e00..5368093bb8090173a290a2b4951b37c04d7575bd 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
$attr[$key] = $attr[$key][0];
}
}
-
+
if(isset($attr[$key]['count'])){
if(is_array($attr[$key])){
unset($attr[$key]['count']);
}
}
}
+
unset($attr['count']);
unset($attr['dn']);
}else{
/* If this is no department */
foreach($attr as $key => $value){
+ $sr= ldap_read($this->cid, $this->fix($sourcedn), "(objectClass=*)", array($key));
+ $ei= ldap_first_entry($this->cid, $sr);
+ $tmp = (@ldap_get_values_len($this->cid, $ei,$key));
+ if(is_array($tmp)){
+ $attr[$key] = $tmp;
+ }
+
if(is_numeric($key)) unset($attr[$key]);
if(isset($attr[$key]['count'])){
if(($attr[$key]['count']==1)&&($key!="objectClass")){
}
unset($attr['count']);
unset($attr['dn']);
+
if($type=="branch"){
$attr['FAIstate'] ="branch";
diff --git a/include/php_setup.inc b/include/php_setup.inc
index 07b2dc57cb86fe243009206c5bf3d6cf955e7f2c..c9f3b3f6d9e493aeb290e126574e229c0faa8fbf 100644 (file)
--- a/include/php_setup.inc
+++ b/include/php_setup.inc
$trace= debug_backtrace();
/* Generate trace history */
- for ($index= 1; $index<count($trace); $index++){
+ for ($index= 0; $index<count($trace); $index++){
$ct= $trace[$index];
$loc= "";
if (isset($ct['class'])){