Show
Ignore:
Timestamp:
08/24/06 01:14:02 (2 years ago)
Author:
cfriesen
Message:

Feel free to scream if this breaks something...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/opml.php

    r1511 r1544  
    122122if (array_key_exists('act',$_REQUEST)) { 
    123123 
    124     $rs = rss_query( "select fid,tag from " .getTable('tag')  
    125         ." t, " .getTable('metatag') ." mt " 
    126         ." where mt.tid=t.id and ttype='channel'"); 
     124    $rs = rss_query( "select fid,tag from " .getTable('tag') ." t " 
     125                   ."inner join " .getTable('metatag') ." mt on mt.tid = t.id " 
     126                   ." where ttype='channel'"); 
    127127    $cats=array(); 
    128128    while(list($cid,$tag) = rss_fetch_row($rs)) { 
     
    136136    $sql = "select " 
    137137      ." c.id, c.title, c.url, c.siteurl, d.name, c.parent, c.descr " 
    138       ." from ". getTable("channels") . " c, " .getTable("folders") ." d " 
    139       ." where d.id = c.parent"; 
    140        
     138      ." from ". getTable("channels") . " c " 
     139      ." inner join " . getTable("folders") ." d on d.id = c.parent "; 
    141140       
    142141    if (hidePrivate()) { 
    143         $sql .=" and not(c.mode & " . RSS_MODE_PRIVATE_STATE .") ";        
     142        $sql .=" where not(c.mode & " . RSS_MODE_PRIVATE_STATE .") ";          
    144143    } 
    145144     
     
    151150        $sql .=" order by d.name asc, c.title asc"; 
    152151    } 
    153      
    154      
    155      
    156152     
    157153    $res = rss_query($sql);