Project

General

Profile

Actions

Bug #3675

closed

Userlists filtered to empty causes a warning

Added by krileon over 11 years ago. Updated over 11 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 #1

Updated by beat over 11 years ago

  • Priority changed from Normal to High
Actions #2

Updated by beat over 11 years ago

  • Status changed from Resolved to Closed
  • Estimated time set to 1:00 h

Fixed as suggested in r1875 .
Thank you Kyle.

Actions

Also available in: Atom PDF