summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authordeva <deva>2009-06-22 10:12:11 +0000
committerdeva <deva>2009-06-22 10:12:11 +0000
commitb31e7fba17d1e5c1264c0829c4da258c32aa80c3 (patch)
treed9b5d68c433e98a2df0bd16c82c2359e5fa0a3f5 /server/src
parent3bfeec0bfb4afb3fbd443d724007ade4683c2acf (diff)
Fixed bug, where db overruled map, whn prefilled var not set.
Diffstat (limited to 'server/src')
-rw-r--r--server/src/widgetgenerator.cc2
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 &macro,
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;