<div dir="ltr">You should add some sort of accumulator to getReportingUsers so that you don't recur for userids you have already checked.<br><div><br></div><div style>The getListViewEntries function is too late in the process -- you need to look at the SQL generation that results in the $list_result that is passed to that function instead.</div>
</div>