yep.
you got the empty thingie.
when you split the section names, the last one is empty as after each value is linefeed.
that results in readprofilestring($inifile,"","user") all over again.
change:
$splittedList = split($listOfSections,chr(10))

to:
$splittedList = split(left($listOfSections, -1),chr(10))
_________________________
!

download KiXnet