From 55fc0e600c749ca535c3d598c26dcc85df4f321a Mon Sep 17 00:00:00 2001 From: WispX <1591788658@qq.com> Date: Sat, 16 Feb 2019 12:36:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/index/controller/User.php b/application/index/controller/User.php index 459712d8..c599eb1a 100644 --- a/application/index/controller/User.php +++ b/application/index/controller/User.php @@ -130,8 +130,8 @@ class User extends Base $folders = $images = []; $this->getDeleteFoldersAndImages($id, $folders, $images); $folders[] = (int) $id; - Folders::destroy($folders, true); - $this->deleteImages($images); + $folders && Folders::destroy($folders, true); + $images && $this->deleteImages($images); Db::commit(); } catch (Exception $e) { Db::rollback();