a.binder 8 years ago
parent
commit
a92654679f
1 changed files with 20 additions and 19 deletions
  1. 20 19
      SE/se-lib/Route/WfsBiAudit.php

+ 20 - 19
SE/se-lib/Route/WfsBiAudit.php

@@ -182,25 +182,26 @@ public function objectStructView($item) {
 					self::throwServiceException("Błąd danych z BaseStruct ");
 				}
 				
-			} else {
-				$this->findRelations($gml, $ID, $resolveDepth);
-	
-				foreach ($this->tablesUsed as $table) $this->addAttribute($wfs, "xmlns:default_db__x3A__{$table}", "https://biuro.biall-net.pl/wfs/default_db/{$table}");
-				$attrs = [
-					'numberMatched' => 'unknown',
-					'numberReturned' => '1',
-				];
-				foreach ($attrs as $name => $value) $this->addAttribute($wfs, $name, $value);
-	
-				$xml = $this->dom->saveXML();
-				self::output($xml);
-				
-			} 
-			catch (Exception $e) {
-			$this->objectStructureAction('default_db/BI_audit_CEIDG_pelnomocnicy/BI_audit_CEIDG_pelnomocnicy');
-
-			//self::throwServiceException($e->getMessage());
-			}
+				} else {
+					$this->findRelations($gml, $ID, $resolveDepth);
+		
+					foreach ($this->tablesUsed as $table) $this->addAttribute($wfs, "xmlns:default_db__x3A__{$table}", "https://biuro.biall-net.pl/wfs/default_db/{$table}");
+					$attrs = [
+						'numberMatched' => 'unknown',
+						'numberReturned' => '1',
+					];
+					foreach ($attrs as $name => $value) $this->addAttribute($wfs, $name, $value);
+		
+					$xml = $this->dom->saveXML();
+					self::output($xml);
+						
+				} 
+			
+			} catch (Exception $e) {
+					//$this->objectStructureAction('default_db/BI_audit_CEIDG_pelnomocnicy/BI_audit_CEIDG_pelnomocnicy');
+		
+					self::throwServiceException($e->getMessage());
+		    }
 	}
 
 }