| @@ 334-338 (lines=5) @@ | ||
| 331 | $t = $crit->param[0]; |
|
| 332 | if ($t[0]->type == 'texte') { |
|
| 333 | $t = $t[0]->texte; |
|
| 334 | if (preg_match("/^(.*)\.(.*)$/", $t, $r)) { |
|
| 335 | $t = table_objet_sql($r[1]); |
|
| 336 | $t = array_search($t, $boucles[$idb]->from); |
|
| 337 | if ($t) $t .= '.' . $r[2]; |
|
| 338 | } |
|
| 339 | } else { $t = '".' |
|
| 340 | . calculer_critere_arg_dynamique($idb, $boucles, $t) |
|
| 341 | . '."'; |
|
| @@ 471-476 (lines=6) @@ | ||
| 468 | } |
|
| 469 | } |
|
| 470 | } |
|
| 471 | if (preg_match('/^\'([^"]*)\'$/', $order, $m)) { |
|
| 472 | $t = $m[1]; |
|
| 473 | if (strpos($t,'.') AND !in_array($t, $boucle->select)) { |
|
| 474 | $boucle->select[] = $t; |
|
| 475 | } |
|
| 476 | } else $sens =''; |
|
| 477 | ||
| 478 | if ($fct) { |
|
| 479 | if (preg_match("/^\s*'(.*)'\s*$/", $order, $r)) |
|