Code

Fixed erroFixed errorr
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Dec 2005 11:48:04 +0000 (11:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Dec 2005 11:48:04 +0000 (11:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2358 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/connectivity/class_opengwAccount.inc

index 042c2b9e0625237510e314823d428508364f16d3..6b83bdbd6c0e2dd05d49f3f31a2ce9aee7e79c2c 100644 (file)
@@ -64,7 +64,11 @@ class opengwAccount extends plugin
                        if($this->handle->connected){
 
                                /* Set login name, to check if this is_account */
-                               $this->handle->info['login'] = $this->attrs['uid'][0];
+                               if(isset($this->attrs['uid'][0])){
+                                       $this->handle->info['login'] = $this->attrs['uid'][0];
+                               }else{
+                                       $this->handle->info['login'] = ""; 
+                               }
 
                                /* If this is account get data from database first */
                                if($this->handle->CheckExistence()){