aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-07-05 17:06:18 +0700
committerGravatar Ugnich Anton2014-07-05 17:06:18 +0700
commit24233da239e683ea9331a97685cc38e7981835a9 (patch)
tree954f212fddd5a69884fe4bc5eac31b9fce1363c1
parentc56c582c37e62acb9a658def2dafdddff8386281 (diff)
* tags bugfix
-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()) {