From 24233da239e683ea9331a97685cc38e7981835a9 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Sat, 5 Jul 2014 17:06:18 +0700 Subject: * tags bugfix --- src/com/juick/server/TagQueries.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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 ret = new ArrayList(); 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()) { -- cgit v1.2.3