diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-22 15:38:00 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-03-22 15:38:00 -0700 |
commit | 9a52b90f227e8ff774110cc2f5cd536714d9802d (patch) | |
tree | a5e42b61ca23d76c2c2ed47948e682747f836a36 /Zotlabs/Module/Articles.php | |
parent | 1f128e84fb8f407c6bd678b3b2bb25605884cfc5 (diff) | |
download | volse-hubzilla-9a52b90f227e8ff774110cc2f5cd536714d9802d.tar.gz volse-hubzilla-9a52b90f227e8ff774110cc2f5cd536714d9802d.tar.bz2 volse-hubzilla-9a52b90f227e8ff774110cc2f5cd536714d9802d.zip |
hubzilla issue #1013 - comments not displayed in single card/article view
Diffstat (limited to 'Zotlabs/Module/Articles.php')
-rw-r--r-- | Zotlabs/Module/Articles.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Articles.php b/Zotlabs/Module/Articles.php index e2e0fed5d..81f7b6543 100644 --- a/Zotlabs/Module/Articles.php +++ b/Zotlabs/Module/Articles.php @@ -129,19 +129,20 @@ class Articles extends \Zotlabs\Web\Controller { $sql_extra = item_permissions_sql($owner); + $sql_item = ''; if($selected_card) { $r = q("select * from iconfig where iconfig.cat = 'system' and iconfig.k = 'ARTICLE' and iconfig.v = '%s' limit 1", dbesc($selected_card) ); if($r) { - $sql_extra .= "and item.id = " . intval($r[0]['iid']) . " "; + $sql_item = "and item.id = " . intval($r[0]['iid']) . " "; } } $r = q("select * from item where item.uid = %d and item_type = %d - $sql_extra order by item.created desc", + $sql_extra $sql_item order by item.created desc", intval($owner), intval(ITEM_TYPE_ARTICLE) ); |