diff --git a/NEWS.md b/NEWS.md index 7ee5eb77..8b212f0d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,6 @@ 1.3.5 (DD/MM/YY) ----- +* Fix skipfields use with SHP output format (#81) 1.3.4 (21/01/13) ----- diff --git a/app/controllers/app.js b/app/controllers/app.js index 821f17a8..d307d95e 100755 --- a/app/controllers/app.js +++ b/app/controllers/app.js @@ -250,7 +250,7 @@ function handleQuery(req, res) { function packageResults(err, result){ if (err) throw err; - if ( skipfields.length ){ + if ( result && skipfields.length ){ for ( var i=0; i