From: Matthias Schmidt Date: Wed, 24 Dec 2014 15:45:59 +0000 (+0100) Subject: Fix error when loading recent activities X-Git-Tag: 2.1.0_Beta_3~89 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b053986c20621723bc516b73639fc4852a57bd5;p=GitHub%2FWoltLab%2FWCF.git Fix error when loading recent activities --- 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