Przeglądaj źródła

nie w tej petli join

a.binder 9 lat temu
rodzic
commit
0dc8c55e28
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      SE/dev/php-cli/biale_put_PE_to_mysql.php

+ 1 - 3
SE/dev/php-cli/biale_put_PE_to_mysql.php

@@ -90,14 +90,12 @@ foreach($edge_paths_with_PE->children() as $child)  {
 	   foreach($child->attributes() as $a=>$b) {
 		   //	echo "#87Child";print_r($b[0]);
 		   if($a=='ID_Way') $ID_Way=$b[0];
-		   if($a=='ID_Join') $ID_Join=$b[0];
 
 		   //if($a=='Count') $Count=$b[0];
 	   }
 	  //echo $child->getName() . ": " . " ID_Way: ".$ID_Way. " : ";
 	
 	   settype($ID_Way, "integer");
-	   settype($ID_Join, "integer");
 
 	   //$ID_Way=var_dump($ID_Way);
 	 //  echo "#88Child:"; print_r($ID_Way);
@@ -111,7 +109,7 @@ foreach($edge_paths_with_PE->children() as $child)  {
 		   $Path_Point['Pos']=$Path_Point['Pos'][0]; settype($Path_Point['Pos'], "integer");
 		   $Path_Point['X']=$Path_Point['X'][0]; settype($Path_Point['X'], "string");
 		   $Path_Point['Y']=$Path_Point['Y'][0]; settype($Path_Point['Y'], "string");
-		   $Path_Point['ID_Join']=$ID_Join;
+		   $Path_Point['ID_Join']=$Path_Point['ID_Join'][0]; settype($Path_Point['ID_Join'], "integer");
 
 		   $edge_paths_with_PE_arr[$ID_Way][$id_j]=$Path_Point;
 	   }