From: Matthias Schmidt Date: Sat, 27 Jul 2013 16:39:48 +0000 (+0200) Subject: Fixes issue in UserActivityPointHandler::fireEvents() X-Git-Tag: 2.0.0_Beta_6~31^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c3176d130261150670aa24ee56b46299695a1ac;p=GitHub%2FWoltLab%2FWCF.git Fixes issue in UserActivityPointHandler::fireEvents() --- 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();