Fix deletion of orphaned activity events
authorMatthias Schmidt <gravatronics@live.com>
Wed, 21 Jan 2015 20:48:01 +0000 (21:48 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 21 Jan 2015 20:48:01 +0000 (21:48 +0100)
commit3b2f2738a60f965f1ca292051c69cbb3db2db807
tree50dd3204ea35891873f1d56616621af277d33d7f
parentdcf94cd3558d8c169d4c8d20f47949f39a1510c5
Fix deletion of orphaned activity events

Initially, an activity event is neither accessible nor orphaned. If an orphaned activity event is detected, it is simply set as orphaned but internally it is also still marked as not accessible. Therefore, we need to first check if an event is an orphan and only afterwards if it is accessible (an accessible, but orphaned event makes no sense).
wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php