=== cls/categories.php
==================================================================
|
|
|
|
| 117 | 117 | if (hidePrivate()) { |
| 118 | 118 | $sql .=" and not(unread & " . RSS_MODE_PRIVATE_STATE .") "; |
| 119 | 119 | } |
| 120 | | $sql .= " and not(c.mode & " . RSS_MODE_DELETED_STATE .") "; |
| | 120 | $sql .= " and not(c.mode & " . RSS_MODE_DELETED_STATE .") " |
| 121 | 121 | ." group by m.tid"; |
| 122 | 122 | _pf('query'); |
| 123 | 123 | $res = rss_query($sql); |
| … |
… |
|
| 140 | 140 | $sql = "select " |
| 141 | 141 | ." c.id, c.title, c.url, c.siteurl, t.tag, c.parent, c.icon, c.descr, c.mode, t.id " |
| 142 | 142 | ." from " . getTable('channels') ." c " |
| 143 | | ." inner join " . getTable('metatag') ." m m.fid = c.id " |
| | 143 | ." inner join " . getTable('metatag') ." m on m.fid = c.id " |
| 144 | 144 | ." inner join " . getTable('tag') . " t on t.id = m.tid " |
| 145 | | ." where m.ttype = 'channel' " |
| | 145 | ." where m.ttype = 'channel' "; |
| 146 | 146 | |
| 147 | 147 | if (hidePrivate()) { |
| 148 | 148 | $sql .= " and not(c.mode & ".RSS_MODE_PRIVATE_STATE.") "; |