Project

General

Profile

Actions

Bug #3675

closed

Userlists filtered to empty causes a warning

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

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
05 September 2012
Due date:
% Done:

100%

Estimated time:
1:00 h

Description

When there are no users present in a userlist after filtering it down to nothing the below warning is thrown.

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

This is due to the query returning no results, but a foreach is still attempted on it. This should have an IF check before trying to parse results.

https://www.joomlapolis.com/forum/153-professional-member-support/209387-error-message-with-list-and-filter-when-no-value#209397


Files

cb.lists.patch (1.11 KB) cb.lists.patch krileon, 05 September 2012 16:06
Actions

Also available in: Atom PDF