From ce2872b04c00fc8ad6720fd59df05b05af322ea4 Mon Sep 17 00:00:00 2001 From: Coxxs Date: Sat, 21 Dec 2019 08:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20rss=E6=B3=84=E9=9C=B2?= =?UTF-8?q?=E9=9D=9E=E5=85=AC=E5=BC=80=E6=97=A5=E5=BF=97=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/class/table/table_home_blog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/source/class/table/table_home_blog.php b/upload/source/class/table/table_home_blog.php index 3ad44c86a..5753ee149 100644 --- a/upload/source/class/table/table_home_blog.php +++ b/upload/source/class/table/table_home_blog.php @@ -32,7 +32,7 @@ class table_home_blog extends discuz_table } public function range($start = 0, $limit = 0, $ordersc = 'DESC', $orderby = 'dateline', $friend = null, $status = null, $uid = null, $dateline = null) { $wheresql = '1'; - $wheresql .= $friend ? ' AND '.DB::field('friend', $friend) : ''; + $wheresql .= ($friend !== null) ? ' AND '.DB::field('friend', $friend) : ''; $wheresql .= $uid ? ' AND '.DB::field('uid', $uid) : ''; $wheresql .= $status ? ' AND '.DB::field('status', $status) : ''; $wheresql .= $dateline ? ' AND '.DB::field('dateline', $dateline, '>=') : ''; -- Gitee