Fix returnValue of `UserClipboardAction::__validateAccessibleGroups()`
authorMatthias Schmidt <gravatronics@live.com>
Sun, 13 Nov 2016 13:33:22 +0000 (14:33 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 13 Nov 2016 13:33:25 +0000 (14:33 +0100)
Missing indices lets JavaScript interpret the object ids as an object
instead of an array.

wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php

index ace1cf20ed49b745bcb5bfaa693e9cc271febf61..17ab05396e69ee473ee8468035ac008de14b3c53 100644 (file)
@@ -157,7 +157,7 @@ class UserClipboardAction extends AbstractClipboardAction {
                        }
                }
                
-               return $userIDs;
+               return array_values($userIDs);
        }
        
        /**