Fix for when renaming entries only changes case (https://bugs.launchpad.net/bugs/384157)

This commit is contained in:
Deon George 2009-08-17 10:52:46 +10:00
parent df404d435a
commit a5b9e43a57

View File

@ -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