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

Updated by krileon almost 14 years ago

Actions #2

Updated by beat almost 14 years ago

  • Estimated time set to 2:00 h
Actions #3

Updated by beat almost 14 years ago

  • Status changed from Resolved to Closed

Fixed as suggested in r1433 , except for patch b line 1098 : don't agree that it's needed. CB gids is clearly always array looking at code above.

Actions

Also available in: Atom PDF