From c80bc3d36bd044c5307ecf1e4cdb6286429ffca3 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Thu, 3 Sep 2020 17:00:13 +0800 Subject: [PATCH] * Fix a bug. --- module/user/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/user/model.php b/module/user/model.php index a5a677b780..a9089b8b45 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -958,6 +958,7 @@ class userModel extends model ->where('t1.type')->eq('project') ->andWhere('t1.account')->eq($account) ->andWhere('t2.deleted')->eq(0) + ->andWhere('t2.program')->ne(0) ->orderBy('t2.id_desc') ->fetchAll();