modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-06-07 18:55:08 +04:00
parent d0b8be8132
commit d612253c1d
1 changed files with 9 additions and 8 deletions

View File

@ -64,10 +64,11 @@ abstract class _base {
} else { } else {
## associatif ## associatif
# paramètre # paramètre
$param0 = preg_replace('/^.+\./', "", $key);
$i = false; $i = false;
if ($bindings !== null && array_key_exists($key, $bindings)) { if ($bindings !== null && array_key_exists($param0, $bindings)) {
$i = 2; $i = 2;
while (array_key_exists("$key$i", $bindings)) { while (array_key_exists("$param0$i", $bindings)) {
$i++; $i++;
} }
} }
@ -153,14 +154,14 @@ abstract class _base {
$parts[] = $key; $parts[] = $key;
$parts[] = " $op "; $parts[] = " $op ";
} }
$param = "$key$i"; $param = "$param0$i";
$parts[] = ":$param"; $parts[] = ":$param";
$bindings[$param] = $value; $bindings[$param] = $value;
if ($i === false) $i = 2; if ($i === false) $i = 2;
else $i++; else $i++;
} }
} else { } else {
$param = "$key$i"; $param = "$param0$i";
$parts[] = ":$param"; $parts[] = ":$param";
$bindings[$param] = $condvalue; $bindings[$param] = $condvalue;
if ($i === false) $i = 2; if ($i === false) $i = 2;
@ -199,13 +200,13 @@ abstract class _base {
} else { } else {
## associatif ## associatif
# paramètre # paramètre
$param = $key; $param = $param0 = preg_replace('/^.+\./', "", $key);
if ($bindings !== null && array_key_exists($param, $bindings)) { if ($bindings !== null && array_key_exists($param0, $bindings)) {
$i = 2; $i = 2;
while (array_key_exists("$key$i", $bindings)) { while (array_key_exists("$param0$i", $bindings)) {
$i++; $i++;
} }
$param = "$key$i"; $param = "$param0$i";
} }
# value # value
$value = $part; $value = $part;