From 23a97465e5aebf4014de116c7f83956c9b50589a Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 11 Dec 2016 07:09:48 +0000 Subject: [PATCH] Avoid SQL errors --- mod/network.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/network.php b/mod/network.php index 6a074d0832..cafaa11aec 100644 --- a/mod/network.php +++ b/mod/network.php @@ -442,8 +442,8 @@ function network_content(&$a, $update = 0) { // desired. $sql_post_table = ""; - $sql_options = (($star) ? " and starred = 1 " : ''); - $sql_options .= (($bmark) ? " and bookmark = 1 " : ''); + $sql_options = (($star) ? " AND `thread`.`starred` " : ''); + $sql_options .= (($bmark) ? " AND `thread`.`bookmark` " : ''); $sql_extra = $sql_options; $sql_extra2 = ""; $sql_extra3 = ""; -- 2.39.5