diff options
Diffstat (limited to 'server/src/widgetgenerator.cc')
-rw-r--r-- | server/src/widgetgenerator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc index df1dcfb..6651fb1 100644 --- a/server/src/widgetgenerator.cc +++ b/server/src/widgetgenerator.cc @@ -135,7 +135,7 @@ static std::string send_macro_widget(Macro ¯o, values[widget.attributes["name"]].value.c_str(), (int)values[widget.attributes["name"]].timestamp); - if(prefilled == "" || values[widget.attributes["name"]].timestamp > timestamp) { + if(values[widget.attributes["name"]].timestamp > timestamp) { if(values[widget.attributes["name"]].timestamp > now - Conf::db_max_ttl) { widget.attributes["value"] = xml_encode(values[widget.attributes["name"]].value); timestamp = values[widget.attributes["name"]].timestamp; |