From 9b053986c20621723bc516b73639fc4852a57bd5 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 24 Dec 2014 16:45:59 +0100 Subject: [PATCH] Fix error when loading recent activities --- .../user/activity/event/UserActivityEventAction.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php index 65edd1577e..73391c1068 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php @@ -65,6 +65,10 @@ class UserActivityEventAction extends AbstractDatabaseObjectAction { // removes orphaned and non-accessable events UserActivityEventHandler::validateEvents($eventList); + if (!count($eventList)) { + return array(); + } + // parse template WCF::getTPL()->assign(array( 'eventList' => $eventList -- 2.20.1