From a5b9e43a57b369be168c404d91cd9846c7f49647 Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 17 Aug 2009 10:52:46 +1000 Subject: [PATCH] Fix for when renaming entries only changes case (https://bugs.launchpad.net/bugs/384157) --- lib/Tree.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Tree.php b/lib/Tree.php index de6f441..a332147 100644 --- a/lib/Tree.php +++ b/lib/Tree.php @@ -225,7 +225,8 @@ abstract class Tree { $dnlowerNEW = $this->indexDN($dnNEW); $this->entries[$dnlowerNEW] = $this->entries[$dnlowerOLD]; - unset($this->entries[$dnlowerOLD]); + if ($dnlowerOLD != $dnlowerNEW) + unset($this->entries[$dnlowerOLD]); $this->entries[$dnlowerNEW]->rename($dnNEW); # Update the parent's children