Changeset 1544 for trunk/gregarius/opml.php
- Timestamp:
- 08/24/06 01:14:02 (4 years ago)
- Files:
-
- 1 modified
-
trunk/gregarius/opml.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/opml.php
r1511 r1544 122 122 if (array_key_exists('act',$_REQUEST)) { 123 123 124 $rs = rss_query( "select fid,tag from " .getTable('tag') 125 ." t, " .getTable('metatag') ." mt"126 ." where mt.tid=t.id andttype='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'"); 127 127 $cats=array(); 128 128 while(list($cid,$tag) = rss_fetch_row($rs)) { … … 136 136 $sql = "select " 137 137 ." 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 "; 141 140 142 141 if (hidePrivate()) { 143 $sql .=" andnot(c.mode & " . RSS_MODE_PRIVATE_STATE .") ";142 $sql .=" where not(c.mode & " . RSS_MODE_PRIVATE_STATE .") "; 144 143 } 145 144 … … 151 150 $sql .=" order by d.name asc, c.title asc"; 152 151 } 153 154 155 156 152 157 153 $res = rss_query($sql);
