From b31e7fba17d1e5c1264c0829c4da258c32aa80c3 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 22 Jun 2009 10:12:11 +0000 Subject: Fixed bug, where db overruled map, whn prefilled var not set. --- server/src/widgetgenerator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src') 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; -- cgit v1.2.3