diff options
author | Richard de Boer <github@tubul.net> | 2021-04-10 14:50:17 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-06-07 21:33:52 +0000 |
commit | 088118f54867cc57d160d0e9a9a4582159af5c98 (patch) | |
tree | 603fd89d245311955e28810545e9a103f3f93858 | |
parent | 7e9d459fea6c6c6eb834df6b1c2fe83beb26031b (diff) | |
download | nextcloud-server-088118f54867cc57d160d0e9a9a4582159af5c98.tar.gz nextcloud-server-088118f54867cc57d160d0e9a9a4582159af5c98.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>
-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(); }); } |