Code

Updated getEntry.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jan 2010 16:00:59 +0000 (16:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jan 2010 16:00:59 +0000 (16:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15062 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_listing.inc

index 749bc30d13c71a1863fcddd9940294f2d88c1563..5c5e9c43da3e33bea483ec4078ce254487dd8ec9 100644 (file)
@@ -1506,7 +1506,7 @@ class listing {
   function getEntry($dn)
   {
     foreach ($this->entries as $entry) {
-      if (isset($entry['dn']) && strcasecmp($dn, $entry['dn'])){
+      if (isset($entry['dn']) && strcasecmp($dn, $entry['dn']) == 0){
         return $entry;
       }
     }