diff options
author | Richard de Boer <github@tubul.net> | 2021-04-10 14:50:17 +0200 |
---|---|---|
committer | Richard de Boer <git@tubul.net> | 2021-05-29 14:14:52 +0200 |
commit | a0d265b0b1b36e1d560e4c253b6596cdf137f637 (patch) | |
tree | 37a35b9fba328496456a9342a414a0a883ad89de /lib/public/AppFramework | |
parent | f23d057ad92d77cbfeda9eed65a4874dc570761e (diff) | |
download | nextcloud-server-a0d265b0b1b36e1d560e4c253b6596cdf137f637.tar.gz nextcloud-server-a0d265b0b1b36e1d560e4c253b6596cdf137f637.zip |
Fix a usort comparison function returning a boolean instead of an integer
PHP 8 shows deprecation warnings about this, see #25806
Signed-off-by: Richard de Boer <git@tubul.net>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r-- | lib/public/AppFramework/Http/Template/PublicTemplateResponse.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php index 84c940d4229..58871caac2d 100644 --- a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php +++ b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php @@ -97,7 +97,7 @@ class PublicTemplateResponse extends TemplateResponse { $this->headerActions[] = $action; } usort($this->headerActions, function (IMenuAction $a, IMenuAction $b) { - return $a->getPriority() > $b->getPriority(); + return $a->getPriority() <=> $b->getPriority(); }); } |