Fix error when loading recent activities
authorMatthias Schmidt <gravatronics@live.com>
Wed, 24 Dec 2014 15:45:59 +0000 (16:45 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 24 Dec 2014 15:45:59 +0000 (16:45 +0100)
wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php

index 65edd1577e2d7255975b4a1dfa8541328faf1c0d..73391c10686a3a475cbe8a670117ddbd69bfaf10 100644 (file)
@@ -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