From 7c3176d130261150670aa24ee56b46299695a1ac Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 27 Jul 2013 18:39:48 +0200 Subject: [PATCH] Fixes issue in UserActivityPointHandler::fireEvents() --- .../user/activity/point/UserActivityPointHandler.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php b/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php index 8b2e10b656..22dab01c05 100644 --- a/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php @@ -105,6 +105,10 @@ class UserActivityPointHandler extends SingletonFactory { throw new SystemException("Object type '".$objectType."' is not valid for object type definition 'com.woltlab.wcf.user.activityPointEvent'"); } + if (empty($itemsToUser)) { + return; + } + // update user_activity_point $values = ''; $parameters = $userIDs = array(); -- 2.20.1