File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ protected function checkLizmapFts()
42
42
try {
43
43
// try to get the specific search profile to do not rebuild it
44
44
$ cnx = jDb::getConnection ($ profile );
45
- $ cnx ->query ('SELECT * FROM lizmap_search LIMIT 0; ' );
45
+ @ $ cnx ->query ('SELECT * FROM lizmap_search LIMIT 0; ' );
46
46
$ ok = true ;
47
47
} catch (Exception $ e ) {
48
48
$ ok = false ;
Original file line number Diff line number Diff line change @@ -115,9 +115,13 @@ var lizAttributeTable = function() {
115
115
}
116
116
117
117
config . layers [ configLayerName ] [ 'crs' ] = featureType . getElementsByTagName ( 'SRS' ) [ 0 ] . textContent ;
118
- lizMap . loadProjDefinition ( config . layers [ configLayerName ] . crs , function ( ) {
119
- new OpenLayers . Projection ( config . layers [ configLayerName ] . crs ) ;
120
- } ) ;
118
+
119
+ if ( config . layers [ configLayerName ] [ 'crs' ] !== "" ) {
120
+ lizMap . loadProjDefinition ( config . layers [ configLayerName ] . crs , function ( aProj ) {
121
+ new OpenLayers . Projection ( config . layers [ configLayerName ] . crs ) ;
122
+ } ) ;
123
+ }
124
+
121
125
var bbox = featureType . getElementsByTagName ( 'LatLongBoundingBox' ) [ 0 ] ;
122
126
atConfig [ 'bbox' ] = [
123
127
parseFloat ( bbox . getAttribute ( 'minx' ) )
You can’t perform that action at this time.
0 commit comments