Project

General

Profile

Actions

Bug #3252

closed

Userlist with no users possible can cause fatal error

Added by krileon about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09 February 2012
Due date:
% Done:

100%

Estimated time:
0:30 h

Description

Warning: Invalid argument supplied for foreach() in administrator/components/com_comprofiler/library/cb/cb.lists.php on line 319

The above error is for CB 1.7.1, but issue is still present in CB 1.8 on line 353. The foreach has no IF to check $users so you can end up with null or '' trying to foreach.

https://www.joomlapolis.com/forum/154-advanced-members-support/190321-configuring-cb-users

Patch adds IF check to foreach loop to prevent null values from trying to loop.


Files

cb.list.patch (1.18 KB) cb.list.patch krileon, 09 February 2012 15:35

Related issues 1 (0 open1 closed)

Related to CB - Bug #3247: User list SQL error on J1.5.25Closedbeat08 February 2012

Actions
Actions #1

Updated by beat about 12 years ago

  • Status changed from Resolved to Closed
  • Estimated time set to 0:30 h

r1748 fixes the cause of this bug, instead of the symptom that the patch was fixing.

Actions

Also available in: Atom PDF