a.binder hace 8 años
padre
commit
d43a4ef11a
Se han modificado 1 ficheros con 10 adiciones y 8 borrados
  1. 10 8
      SE/dev/audit_krs_con_digger/audit_krs_con_digger.php

+ 10 - 8
SE/dev/audit_krs_con_digger/audit_krs_con_digger.php

@@ -141,14 +141,16 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
 	  //echo "sql_t";
 	  //print_r($sql_t);
 	  
-	  foreach($sql_t as $T => $sql_ext) {
-		  echo "Querying :".$sql_ext ;
-		  $res=$db->query($sql_ext);
-		  while($h=$db->fetch($res)) {
-			  echo "found "; print_r($h);
-			 $hist_loop[$Y][]=$h;
-			 dig_next($hist_loop,$t,$h,$loop);
-		 }
+	  if( isset($sql_t)) {
+		  foreach($sql_t as $T => $sql_ext) {
+			  echo "Querying :".$sql_ext ;
+			  $res=$db->query($sql_ext);
+			  while($h=$db->fetch($res)) {
+				  echo "found "; print_r($h);
+				 $hist_loop[$Y][]=$h;
+				 dig_next($hist_loop,$t,$h,$loop);
+			 }
+		  }
 	  }
 	  //todo look in Y and die()