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

Feel free to scream if this breaks something...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/api.php

    r1275 r1544  
    6666    $sql = "select " 
    6767           ." c.id, c.title, c.url, c.siteurl, f.name " 
    68            ." from ".getTable("channels")." c, " 
    69            .getTable("folders")." f "." where f.id = c.parent"; 
     68           ." from ".getTable("channels")." c " 
     69           ." inner join " . getTable("folders")." f " 
     70           ."  on f.id = c.parent"; 
    7071 
    7172    if (hidePrivate()) { 
     
    135136           ." c.descr as cdescr, c.url as curl, i.author as iauth, i.url as iurl, " 
    136137           ." unix_timestamp(ifnull(i.pubdate, i.added)) as idate ,i.id as iid" 
    137            ." from ".getTable('item')." i, ".getTable('channels') ." c " 
    138            ." where i.cid=c.id and i.unread & ". RSS_MODE_UNREAD_STATE ." and c.id=$cid"; 
     138           ." from ".getTable('item')." i " 
     139           ." inner join " .getTable('channels') ." c " 
     140           ."  on c.id = i.cid " 
     141           ." where i.unread & ". RSS_MODE_UNREAD_STATE ." and c.id=$cid"; 
    139142 
    140143    if ($date) {