From: janw Date: Mon, 11 Jul 2005 14:12:12 +0000 (+0000) Subject: Fixed some warnings found by eclipse. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d1812c08af6f4b675933887e0e9b3ef4b152704b;p=gosa.git Fixed some warnings found by eclipse. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@938 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; } }