^ fix undefined index style

Replace array by JRegistry