commit 5fb8d451f3e985edc943c30bdfd372d4bf5be004
parent 3a184a70acfac915f598f08960c89fa18760392b
Author: dankert <devnull@localhost>
Date: Fri, 12 Feb 2010 01:33:25 +0100
Fix in setPrefix(): Alten Namen nicht überschreiben.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/objectClasses/Element.class.php b/objectClasses/Element.class.php
@@ -312,7 +312,10 @@ class Element
*/
function setPrefix( $prefix )
{
- list( $oldprefix,$name ) = explode('%',$this->name.'%');
+ if ( strrpos($this->name,'%') === FALSE )
+ $name = $this->name;
+ else
+ list( $oldprefix,$name ) = explode('%',$this->name.'%');
$this->name = $prefix.'%'.$name;
}