Code

Fixed Undefined Index warnings, when creating new user accounts
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Nov 2007 09:42:35 +0000 (09:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Nov 2007 09:42:35 +0000 (09:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7809 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc
plugins/personal/environment/class_environment.inc

index 9732f341efd8d35bb7450187f48da4d3af39a500..d628de47a0033dcd92f7e7f1376d9a0c7bf9f2f7 100644 (file)
@@ -1121,7 +1121,7 @@ function gen_locked_message($user, $dn)
   $remove= false;
 
   /* Save variables from LOCK_VARS_TO_USE in session - for further editing */
-  if( is_global(LOCK_VARS_TO_USE) && count(get_global('LOCK_VARS_TO_USE'))){
+  if( is_global('LOCK_VARS_TO_USE') && count(get_global('LOCK_VARS_TO_USE'))){
 
     $LOCK_VARS_USED   = array();
     $LOCK_VARS_TO_USE = get_global('LOCK_VARS_TO_USE');
index 8fb251c5145653bb53c0d5d21a6dcb1b4975f8e3..973edcc825b20debfd7c0f6ae5279bfb8d8f410e 100644 (file)
@@ -308,7 +308,7 @@ class environment extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      if(in_array("gosaAccount",$this->attrs['objectClass'])){
+      if(isset($this->parent->by_object['user']) || in_array("gosaAccount",$this->attrs['objectClass'])){
         new log("view","users/".get_class($this),$this->dn);
       }else{
         new log("view","groups/".get_class($this),$this->dn);