From 43ffb67a89e23f9713c4e99a1f94b2bee3f06110 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 19 Nov 2007 09:42:35 +0000 Subject: [PATCH] Fixed Undefined Index warnings, when creating new user accounts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7809 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 2 +- plugins/personal/environment/class_environment.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.inc b/include/functions.inc index 9732f341e..d628de47a 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -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'); diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 8fb251c51..973edcc82 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -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); -- 2.30.2