Skip to content

Commit

Permalink
check the right variable
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Jul 23, 2013
1 parent c203281 commit ba41b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void appendToResponse(WOResponse response, WOContext context) {
response.appendContentString("data-address=\"" + _address.valueInComponent(context.component()) + "\" ");
}

if((_lng!=null) && (_lng!=null)) {
if (_lng != null && _lat != null) {
response.appendContentString("data-lng=\"" + _lng.valueInComponent(context.component()) + "\" ");
response.appendContentString("data-lat=\"" + _lat.valueInComponent(context.component()) + "\"");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void appendToResponse(WOResponse response, WOContext context) {
+ _address.valueInComponent(context.component()) + "\" ");
}

if((_lng!=null) && (_lng!=null)) {
if (_lng != null && _lat != null) {
response.appendContentString("data-lng=\"" + _lng.valueInComponent(context.component()) + "\" ");
response.appendContentString("data-lat=\"" + _lat.valueInComponent(context.component()) + "\"");
}
Expand Down

0 comments on commit ba41b75

Please sign in to comment.