diff --git a/lib/OpenLayers/Format/Filter/v1.js b/lib/OpenLayers/Format/Filter/v1.js index 5556c1662b..d0eb67ce93 100644 --- a/lib/OpenLayers/Format/Filter/v1.js +++ b/lib/OpenLayers/Format/Filter/v1.js @@ -227,7 +227,7 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, { var obj = {}; this.readChildNodes(node, obj); var value = obj.value; - if(!value) { + if(value === undefined) { value = this.getChildValue(node); } return value; diff --git a/tests/Format/Filter/v1.html b/tests/Format/Filter/v1.html index 5471717387..a596521213 100644 --- a/tests/Format/Filter/v1.html +++ b/tests/Format/Filter/v1.html @@ -3,6 +3,35 @@