diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-12-06 23:37:57 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-12-19 17:38:33 +0100 |
commit | 000ba6484f6789d9eecef303d031916cdc433827 (patch) | |
tree | c676ecef91c515baea2d087e4a11400aa6c6b749 /apps | |
parent | 1afdce9ef84bebfc4b4a902c1f0311e5e6562387 (diff) | |
download | nextcloud-server-000ba6484f6789d9eecef303d031916cdc433827.tar.gz nextcloud-server-000ba6484f6789d9eecef303d031916cdc433827.zip |
When grouping shares, sort by stime then id (#26777)
If share times are equal, the first share should still win instead of
having the shares swapped.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/MountProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php index 40d2fb27535..5c5d57057b2 100644 --- a/apps/files_sharing/lib/MountProvider.php +++ b/apps/files_sharing/lib/MountProvider.php @@ -123,7 +123,7 @@ class MountProvider implements IMountProvider { // sort by stime, the super share will be based on the least recent share foreach ($tmp as &$tmp2) { @usort($tmp2, function($a, $b) { - if ($a->getShareTime() < $b->getShareTime()) { + if ($a->getShareTime() <= $b->getShareTime()) { return -1; } return 1; |