only add extra urls if this.urls actually exists

git-svn-id: http://svn.openlayers.org/trunk/openlayers@942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-13 12:42:19 +00:00
parent bd9ee403f2
commit a3aa327d2f

View File

@@ -115,11 +115,13 @@ OpenLayers.Layer.WFS.prototype =
//add standard URL
urls.push( this.getFullRequestString( { BBOX:bounds.toBBOX() }) );
// if there are more urls, add them.
for(var i=0; i < this.urls.length; i++) {
var newUrl = this.getFullRequestString( { BBOX:bounds.toBBOX() },
this.urls[i] );
urls.push(newUrl);
if (this.urls != null) {
// if there are more urls, add them.
for(var i=0; i < this.urls.length; i++) {
var newUrl = this.getFullRequestString( { BBOX:bounds.toBBOX() },
this.urls[i] );
urls.push(newUrl);
}
}
return new OpenLayers.Tile.WFS(this, position, bounds,