Closed edwery closed 3 months ago
ok, happy to change to creating a new array - will do that shortly. As you point out, its a bad idea to iterate over a PHP array with anything other than foreach, as its really an ordered map. The code in this PR is also bad, as assuming that the indices are integers, so good idea to change it.
Hide any events associated with a group which is not published (I.E re-drafted or trash).
Do not hide the events if this list is in the group view for a non-published group - this view can only be seen by administrators previewing the draft group, so useful to keep the events visible here. The group is not visible on the public site at this time.