From 82956b1107d3ae03d57693bc11866ca6861d5779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=84=B6=E5=AF=B9=E4=B8=8D=E8=B5=B7?= Date: Sun, 12 Feb 2023 02:23:12 +0000 Subject: [PATCH] =?UTF-8?q?update=20server/app/common/lists/ListsSortTrait?= =?UTF-8?q?.php.=20=E6=8E=92=E5=BA=8F=E7=9A=84=E6=9D=A1=E4=BB=B6=E5=88=A4?= =?UTF-8?q?=E6=96=ADbug=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/common/lists/ListsSortTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/common/lists/ListsSortTrait.php b/server/app/common/lists/ListsSortTrait.php index 34799f3a4..e6d84c0d5 100644 --- a/server/app/common/lists/ListsSortTrait.php +++ b/server/app/common/lists/ListsSortTrait.php @@ -42,10 +42,10 @@ trait ListsSortTrait return $defaultOrder; } - if ($this->orderBy = 'desc') { + if ($this->orderBy == 'desc') { return [$field => 'desc']; } - if ($this->orderBy = 'asc') { + if ($this->orderBy == 'asc') { return [$field => 'asc']; } return $defaultOrder; -- Gitee