Problem description
I am using the JFactory::getUser() method to get the JUser Object so that later I can read the "groups" property.
The problem in Joomla 2.5.1 is that groups now returns an array with numbers for indexes like this:
Code: Select all
[groups] => Array
(
[8] => 8
[9] => 9
)
Code: Select all
[groups] => Array
(
[Super Users] => 8
[MyGroup] => 9
)
The code to test this (in a component controller):
Code: Select all
function test()
{
$user = JFactory::getUser();
echo "<pre>";
print_r($user);
echo "</pre>";
exit;
}
Looking forward for your feedback. Maybe it's just a problem by me.