From 9380d73646bcd79c4f24581b2212f684cea70138 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Feb 2009 05:53:40 -0400 Subject: The "note" expressions returns an empty string if there is no note. --- src/item.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/item.cc b/src/item.cc index 4af37e89..700386af 100644 --- a/src/item.cc +++ b/src/item.cc @@ -143,7 +143,7 @@ namespace { } value_t get_note(item_t& item) { - return item.note ? string_value(*item.note) : value_t(false); + return string_value(item.note ? *item.note : empty_string); } value_t has_tag(call_scope_t& args) { -- cgit v1.2.3