Fix syntax error

Missing || causes build failure when not using GDAL or OGR
Merge pull request #4939 from pagameba/patch-1

Fix syntax error