aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/juick')
-rw-r--r--src/com/juick/server/TagQueries.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/juick/server/TagQueries.java b/src/com/juick/server/TagQueries.java
index 938f7ace..54ec862d 100644
--- a/src/com/juick/server/TagQueries.java
+++ b/src/com/juick/server/TagQueries.java
@@ -64,9 +64,11 @@ public class TagQueries {
ArrayList<com.juick.Tag> ret = new ArrayList<com.juick.Tag>();
for (int i = 0; i < tags.length; i++) {
- com.juick.Tag t = getTag(sql, tags[i], autoCreate);
- if (t != null) {
- ret.add(t);
+ if (!tags[i].isEmpty()) {
+ com.juick.Tag t = getTag(sql, tags[i], autoCreate);
+ if (t != null) {
+ ret.add(t);
+ }
}
}
@@ -79,7 +81,7 @@ public class TagQueries {
PreparedStatement stmt = null;
ResultSet rs = null;
try {
- stmt = sql.prepareStatement("SELECT noindex FROM tags_meta WHERE tag_id=?");
+ stmt = sql.prepareStatement("SELECT noindex FROM tags WHERE tag_id=?");
stmt.setInt(1, tag_id);
rs = stmt.executeQuery();
if (rs.first()) {