From 6472f95019f26385af3641a473861374a77b8d44 Mon Sep 17 00:00:00 2001 From: qi5314 <774698289@qq.com> Date: Tue, 22 Mar 2022 09:04:45 +0000 Subject: [PATCH] =?UTF-8?q?update=20app/common/model/system/Content.php.?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E5=86=85=E5=AE=B9=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E7=BC=96=E8=BE=91=20=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=BA=E7=A9=BA=E6=97=B6=E5=80=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/model/system/Content.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/common/model/system/Content.php b/app/common/model/system/Content.php index 5b6d59cd..cc81c37c 100644 --- a/app/common/model/system/Content.php +++ b/app/common/model/system/Content.php @@ -308,6 +308,9 @@ class Content extends Model */ public static function setAttributeAttr($attribute, $data) { + if(empty($attribute)){ + return; + } $pattern = "/