From: hickert Date: Mon, 19 Nov 2007 09:42:35 +0000 (+0000) Subject: Fixed Undefined Index warnings, when creating new user accounts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=43ffb67a89e23f9713c4e99a1f94b2bee3f06110;p=gosa.git 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 --- 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);