From d1812c08af6f4b675933887e0e9b3ef4b152704b Mon Sep 17 00:00:00 2001 From: janw Date: Mon, 11 Jul 2005 14:12:12 +0000 Subject: [PATCH] Fixed some warnings found by eclipse. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@938 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 4ae819f73..1df10314c 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -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; } } -- 2.30.2