Fixes issue in UserActivityPointHandler::fireEvents()
authorMatthias Schmidt <gravatronics@live.com>
Sat, 27 Jul 2013 16:39:48 +0000 (18:39 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 27 Jul 2013 16:39:48 +0000 (18:39 +0200)
wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php

index 8b2e10b65655721e65bb3fecef4b77164228de75..22dab01c05d698979c583f45a98db462632351b7 100644 (file)
@@ -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();