summary refs log tree commit diff stats
path: root/rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'rss.php')
-rwxr-xr-xrss.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/rss.php b/rss.php index 8dc36b6..1758049 100755 --- a/rss.php +++ b/rss.php
@@ -118,7 +118,7 @@ if (!isset($_GET['mode']) || ($_GET['mode'] == 'blog'))
118 $getposts = "SELECT * FROM updates WHERE author = \"" . $_GET['author'] . "\" ORDER BY id DESC"; 118 $getposts = "SELECT * FROM updates WHERE author = \"" . $_GET['author'] . "\" ORDER BY id DESC";
119 } else if ($_GET['blog'] == 'tag') 119 } else if ($_GET['blog'] == 'tag')
120 { 120 {
121 $getposts = "SELECT * FROM updates WHERE tags LIKE '%s:" . strlen($_GET['tag']) . ":\"" . $_GET['tag'] . "\"%' ORDER BY id DESC"; 121 $getposts = "SELECT * FROM updates AS u, tags AS t WHERE u.id = t.post_id AND t.post_type = \"published\" AND t.tag = \"" . $_GET['tag'] . "\" ORDER BY u.id DESC";
122 } else if (!isset($_GET['blog'])) { 122 } else if (!isset($_GET['blog'])) {
123 $getposts = "SELECT * FROM updates ORDER BY id DESC"; 123 $getposts = "SELECT * FROM updates ORDER BY id DESC";
124 } 124 }