|
|
@@ -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()
|
|
|
|