From 418d7f899eadec883f389b21efe89d552dca5414 Mon Sep 17 00:00:00 2001 From: bn8 Date: Tue, 16 Mar 2010 16:01:14 +0100 Subject: [PATCH] LSldapObject : Removed unused paramater in method getObjectKeyValueInRelation() --- public_html/includes/class/class.LSldapObject.php | 5 ++--- public_html/includes/class/class.LSobjects.LSgroup.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/public_html/includes/class/class.LSldapObject.php b/public_html/includes/class/class.LSldapObject.php index 7b3c68e5..88554191 100644 --- a/public_html/includes/class/class.LSldapObject.php +++ b/public_html/includes/class/class.LSldapObject.php @@ -1440,7 +1440,6 @@ class LSldapObject { * Retourne la valeur clef d'un objet en relation * * @param[in] $object Un object de type $objectType - * @param[in] $attr L'attribut dans lequel l'objet doit apparaitre * @param[in] $objectType Le type d'objet en relation * @param[in] $value La valeur que doit avoir l'attribut : * - soit le dn (par defaut) @@ -1448,8 +1447,8 @@ class LSldapObject { * * @retval Mixed La valeur clef d'un objet en relation **/ - function getObjectKeyValueInRelation($object,$attr,$objectType,$attrValue='dn') { - if ((!$attr)||(!$objectType)) { + function getObjectKeyValueInRelation($object,$objectType,$attrValue='dn') { + if (!$objectType) { LSerror :: addErrorCode('LSrelations_05','getObjectKeyValueInRelation'); return; } diff --git a/public_html/includes/class/class.LSobjects.LSgroup.php b/public_html/includes/class/class.LSobjects.LSgroup.php index 04fc4530..76b7d43b 100644 --- a/public_html/includes/class/class.LSobjects.LSgroup.php +++ b/public_html/includes/class/class.LSobjects.LSgroup.php @@ -39,7 +39,7 @@ class LSgroup extends LSldapObject { * @retval Mixed La valeur clef d'un membre **/ function getMemberKeyValue($object) { - return $this -> getObjectKeyValueInRelation($object,$this -> memberAttr,$this -> userObjectType); + return $this -> getObjectKeyValueInRelation($object,$this -> userObjectType); } /**