From 216cf67e31155a9e926b9325c3e90ae7f10bc488 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 9 Jan 2011 14:38:00 +0000 Subject: [PATCH] fixed PHP notices --- lam/lib/modules/eduPerson.inc | 4 ++-- lam/lib/modules/hostObject.inc | 4 ++-- lam/lib/modules/phpGroupwareUser.inc | 4 ++-- lam/lib/modules/shadowAccount.inc | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lam/lib/modules/eduPerson.inc b/lam/lib/modules/eduPerson.inc index ff2bebf5..638d7688 100644 --- a/lam/lib/modules/eduPerson.inc +++ b/lam/lib/modules/eduPerson.inc @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2009 - 2010 Roland Gruber + Copyright (C) 2009 - 2011 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -513,7 +513,7 @@ class eduPerson extends baseModule { function load_profile($profile) { parent::load_profile($profile); // add extension - if ($profile['eduPerson_addExt'][0] == "true") { + if (isset($profile['eduPerson_addExt'][0]) && ($profile['eduPerson_addExt'][0] == "true")) { if (!in_array('eduPerson', $this->attributes['objectClass'])) { $this->attributes['objectClass'][] = 'eduPerson'; } diff --git a/lam/lib/modules/hostObject.inc b/lam/lib/modules/hostObject.inc index 8ced97ec..a7ce7ea6 100644 --- a/lam/lib/modules/hostObject.inc +++ b/lam/lib/modules/hostObject.inc @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2010 Roland Gruber + Copyright (C) 2011 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -266,7 +266,7 @@ class hostObject extends baseModule { // profile mappings in meta data parent::load_profile($profile); // add extension - if ($profile['hostObject_addExt'][0] == "true") { + if (isset($profile['hostObject_addExt'][0]) && ($profile['hostObject_addExt'][0] == "true")) { if (!in_array('hostObject', $this->attributes['objectClass'])) { $this->attributes['objectClass'][] = 'hostObject'; } diff --git a/lam/lib/modules/phpGroupwareUser.inc b/lam/lib/modules/phpGroupwareUser.inc index 12893e21..9e36456d 100644 --- a/lam/lib/modules/phpGroupwareUser.inc +++ b/lam/lib/modules/phpGroupwareUser.inc @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2008 - 2010 Roland Gruber + Copyright (C) 2008 - 2011 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -360,7 +360,7 @@ class phpGroupwareUser extends baseModule implements passwordService { function load_profile($profile) { parent::load_profile($profile); // add extension - if ($profile['phpGroupwareUser_addExt'][0] == "true") { + if (isset($profile['phpGroupwareUser_addExt'][0]) && ($profile['phpGroupwareUser_addExt'][0] == "true")) { if (!in_array('phpgwAccount', $this->attributes['objectClass'])) { $this->attributes['objectClass'][] = 'phpgwAccount'; } diff --git a/lam/lib/modules/shadowAccount.inc b/lam/lib/modules/shadowAccount.inc index 1030c80f..2d53f232 100644 --- a/lam/lib/modules/shadowAccount.inc +++ b/lam/lib/modules/shadowAccount.inc @@ -4,7 +4,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) Copyright (C) 2003 - 2006 Tilo Lutz - Copyright (C) 2007 - 2010 Roland Gruber + Copyright (C) 2007 - 2011 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -527,7 +527,7 @@ class shadowAccount extends baseModule implements passwordService { // profile mappings in meta data parent::load_profile($profile); // add extension - if ($profile['shadowAccount_addExt'][0] == "true") { + if (isset($profile['shadowAccount_addExt'][0]) && ($profile['shadowAccount_addExt'][0] == "true")) { if (!in_array('shadowAccount', $this->attributes['objectClass'])) { $this->attributes['objectClass'][] = 'shadowAccount'; }