From 1513c46c77fe21b1fd38d82f57e8db200a8273fc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 22 Jan 2023 19:25:37 +0100 Subject: [PATCH] Doxygen --- htdocs/core/lib/functions.lib.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index a25d083c251..1076d32602f 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -3885,14 +3885,14 @@ function dol_strlen($string, $stringencoding = 'UTF-8') /** * Make a substring. Works even if mbstring module is not enabled for better compatibility. * - * @param string $string String to scan - * @param string $start Start position - * @param int $length Length (in nb of characters or nb of bytes depending on trunconbytes param) - * @param string $stringencoding Page code used for input string encoding - * @param int $trunconbytes 1=Length is max of bytes instead of max of characters - * @return string substring + * @param string $string String to scan + * @param string $start Start position + * @param int|null $length Length (in nb of characters or nb of bytes depending on trunconbytes param) + * @param string $stringencoding Page code used for input string encoding + * @param int $trunconbytes 1=Length is max of bytes instead of max of characters + * @return string substring */ -function dol_substr($string, $start, $length, $stringencoding = '', $trunconbytes = 0) +function dol_substr($string, $start, $length = null, $stringencoding = '', $trunconbytes = 0) { global $langs;