Ticket #438: categories.php.diff

File categories.php.diff, 1.0 kB (added by jazz@…, 4 years ago)

The fix

  • cls/categories.php

    === cls/categories.php
    ==================================================================
     
    117117                        if (hidePrivate()) { 
    118118                                $sql .=" and not(unread & " . RSS_MODE_PRIVATE_STATE .") "; 
    119119                        } 
    120                         $sql .= " and not(c.mode & " . RSS_MODE_DELETED_STATE .") "; 
     120                        $sql .= " and not(c.mode & " . RSS_MODE_DELETED_STATE .") " 
    121121                        ." group by m.tid"; 
    122122                        _pf('query'); 
    123123                        $res = rss_query($sql); 
     
    140140                $sql = "select " 
    141141                 ." c.id, c.title, c.url, c.siteurl, t.tag, c.parent, c.icon, c.descr, c.mode, t.id " 
    142142                 ." 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 " 
    144144                 ." inner join " . getTable('tag') . " t on t.id = m.tid " 
    145                  ." where m.ttype = 'channel' " 
     145                 ." where m.ttype = 'channel' "; 
    146146 
    147147                if (hidePrivate()) { 
    148148                        $sql .= " and not(c.mode & ".RSS_MODE_PRIVATE_STATE.") ";