From 37b0aed31601e137840aeaf02cba82d63a6627fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=A0=E8=BE=BE=E6=B5=AA?= Date: Sun, 31 Mar 2019 15:06:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Darticles=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=AF=B9order=E9=80=89=E9=A1=B9=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=B8=BA=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/portal/taglib/Portal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/portal/taglib/Portal.php b/app/portal/taglib/Portal.php index 985a3c8..d1a13b6 100644 --- a/app/portal/taglib/Portal.php +++ b/app/portal/taglib/Portal.php @@ -83,7 +83,7 @@ class Portal extends TagLib } } - if (strpos($tag['order'], '$') === 0) { + if (!empty($tag['order']) && strpos($tag['order'], '$') === 0) { $order = $tag['order']; $this->autoBuildVar($order); } else { -- Gitee