Code

Fixed funny bug with wrong bases
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Jan 2010 15:56:41 +0000 (15:56 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Jan 2010 15:56:41 +0000 (15:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15460 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_listing.inc

index 23c4df69557ab0cad1dba97172dad29270874fcf..d3587e4dc5ace0657af22eb1fa1492bacc25c944 100644 (file)
@@ -573,7 +573,7 @@ class listing {
       }
       if ($action == 'HOME') {
         $ui= get_userinfo();
-        $this->base= $this->filter->getObjectBase($ui->dn);
+        $this->base= get_base_from_people($ui->dn);
         $this->baseSelector->setBase($this->base);
       }
     }
@@ -978,7 +978,7 @@ class listing {
     $listhead ="";
 
     /* Check if we are in users home  department */
-    if(!count($deps) || $this->filter->base == $this->filter->getObjectBase($ui->dn)){
+    if(!count($deps) || $this->filter->base == get_base_from_people($ui->dn)){
       $enableHome = false;
     }