aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-02-10 10:16:01 +0100
committerJochen Topf <jochen@topf.org>2013-02-10 10:16:01 +0100
commitd83a79f970d6d6f4f857c78e8041021780fa4141 (patch)
tree66b43827c793d41ac83340038d1f5c05e65b2cc8
parentc203c08338b3cac5a8c26deb809943dadf08f468 (diff)
downloadtaginfo-d83a79f970d6d6f4f857c78e8041021780fa4141.tar
taginfo-d83a79f970d6d6f4f857c78e8041021780fa4141.tar.gz
Fix for #21: Description returned null
-rw-r--r--web/lib/api/v4/key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/api/v4/key.rb b/web/lib/api/v4/key.rb
index a67209b..d084110 100644
--- a/web/lib/api/v4/key.rb
+++ b/web/lib/api/v4/key.rb
@@ -277,7 +277,7 @@ class Taginfo < Sinatra::Base
:count => row['count_' + filter_type].to_i,
:fraction => (row['count_' + filter_type].to_f / this_key_count.to_f).round_to(4),
:in_wiki => row['in_wiki'] == 1,
- :description => wikidesc[row['value']]
+ :description => wikidesc[row['value']] || ''
} }
}.to_json
end