From 7cb8177de1c2a44e201507239fa0ee81d9b7204f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 16 Feb 2024 12:13:25 +0100 Subject: [PATCH] fix typos (#28198) --- htdocs/core/lib/functions.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 01ea92eea03..aca014cb6d9 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -12631,7 +12631,7 @@ function dolForgeExplodeAnd($sqlfilters) * * @param string $sqlfilters Universal SQL filter string. Must have been trimmed before. * @param string $error Returned error message - * @param int $parenthesislevel Returned level of global parenthesis that we can remove/siplify, 0 if error or we cant simplify. + * @param int $parenthesislevel Returned level of global parenthesis that we can remove/simplify, 0 if error or we can't simplify. * @return boolean True if valid, False if not valid ($error returned parameter is filled with the reason in such a case) */ function dolCheckFilters($sqlfilters, &$error = '', &$parenthesislevel = 0) @@ -12772,8 +12772,8 @@ function dolForgeCriteriaCallback($matches) //$tmpescaped = "'".$db->escape($db->escapeforlike($regbis[1]))."'"; $tmpescaped = "'".$db->escape($tmpescaped)."'"; // We do not escape the _ and % so the LIKE will work as expected } elseif (preg_match('/^\'(.*)\'$/', $tmpescaped, $regbis)) { - // TODO Retreive type of field for $operand field name. - // So we can complete format. For exemple we could complete a year with month and day. + // TODO Retrieve type of field for $operand field name. + // So we can complete format. For example we could complete a year with month and day. $tmpescaped = "'".$db->escape($regbis[1])."'"; } else { if (strtoupper($tmpescaped) == 'NULL') {