Fixed inverseRecursiveJoin

This commit is contained in:
Enrique Martin 2024-02-07 01:37:31 +01:00
parent 4139910167
commit 064393ed14

View File

@ -2558,8 +2558,8 @@ class Prd
} }
} }
$where = rtrim($where, 'AND ');
$where .= ' '.array_key_first($result).' = "'.reset($result).'"'; $where .= ' '.array_key_first($result).' = "'.reset($result).'"';
$where = rtrim($where, 'AND ');
$sql = sprintf( $sql = sprintf(
'SELECT %s FROM %s WHERE %s', 'SELECT %s FROM %s WHERE %s',