Project

General

Profile

Actions

Bug #2287

closed

J1.6: JFactory::getUser()->groups not always array?

Added by krileon almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04 February 2011
Due date:
% Done:

100%

Estimated time:
2:00 h

Description

Warning: array_values() [function.array-values]: The argument should be an array in /home/xxxxx/public_html/xxxxx/administrator/components/com_comprofiler/plugin.foundation.php on line 3234

http://www.joomlapolis.com/forum/153-professional-member-support/152936-warning-arrayvalues-at-top-of-administrator-pg

I could never duplicate, but we should add additional checks or type casting or maybe both to ensure the value is always an array. As groups is a public var and is easily overwritten by other extensions this could be the problem.


Files

2287a.patch (1.09 KB) 2287a.patch krileon, 04 February 2011 18:35
2287b.patch (1.92 KB) 2287b.patch krileon, 04 February 2011 18:35
Actions

Also available in: Atom PDF