Code

Fixed some warnings found by eclipse.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Jul 2005 14:12:12 +0000 (14:12 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Jul 2005 14:12:12 +0000 (14:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@938 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index 4ae819f7323a5773560dac0a1238b386bd097ceb..1df10314ce0c58cc2bcc127c9b44f9d9f739c423 100644 (file)
@@ -150,6 +150,8 @@ class user extends plugin
 
       /* get password storage type */
       if (isset ($this->attrs['userPassword'][0])){
+       /* Initialize local array */
+       $matches= array();
         if (preg_match ("/^{([^}]+)}(.+)/", $this->attrs['userPassword'][0], $matches)){
           $this->pw_storage= strtolower($matches[1]);
         } else {
@@ -559,7 +561,7 @@ class user extends plugin
       $this->reconnect= true;
       return (0);
     } else {
-      $this->error = "Could not bind to " . $binddn;
+      $this->error = "Could not bind to " . $credentials['ADMIN'];
       return NULL;
     }
   }