From 1d355561e9ce735c29ed4bb51dea66e77af8e4e4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 1 May 2023 19:42:54 +0200 Subject: [PATCH] Fix warning --- .../class/accountancyexport.class.php | 4 +- htdocs/core/class/html.form.class.php | 46 +++++++++---------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/htdocs/accountancy/class/accountancyexport.class.php b/htdocs/accountancy/class/accountancyexport.class.php index 82fda954c32..77a902684b0 100644 --- a/htdocs/accountancy/class/accountancyexport.class.php +++ b/htdocs/accountancy/class/accountancyexport.class.php @@ -387,7 +387,7 @@ class AccountancyExport $outputDir .= '/'.dol_sanitizePathName($formatexportset); if (!dol_is_dir($outputDir)) { if (dol_mkdir($outputDir) < 0) { - $this->errors[] = $langs->trans('ErrorCanNotCreateDir', $outputDir);; + $this->errors[] = $langs->trans('ErrorCanNotCreateDir', $outputDir); return -1; } } @@ -396,7 +396,7 @@ class AccountancyExport if ($outputDir != '') { if (!dol_is_dir($outputDir)) { $langs->load('errors'); - $this->errors[] = $langs->trans('ErrorDirNotFound', $outputDir);; + $this->errors[] = $langs->trans('ErrorDirNotFound', $outputDir); return -1; } diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 5e4f5490e61..e55be478e0b 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2957,14 +2957,14 @@ class Form * This define value for &$opt and &$optJson. * This function is called by select_produits_list(). * - * @param object $objp Resultset of fetch - * @param string $opt Option (var used for returned value in string option format) - * @param string $optJson Option (var used for returned value in json format) - * @param int $price_level Price level - * @param string $selected Preselected value - * @param int $hidepriceinlabel Hide price in label - * @param string $filterkey Filter key to highlight - * @param int $novirtualstock Do not load virtual stock, even if slow option STOCK_SHOW_VIRTUAL_STOCK_IN_PRODUCTS_COMBO is on. + * @param object $objp Resultset of fetch + * @param string $opt Option (var used for returned value in string option format) + * @param array $optJson Option (var used for returned value in json format) + * @param int $price_level Price level + * @param string $selected Preselected value + * @param int $hidepriceinlabel Hide price in label + * @param string $filterkey Filter key to highlight + * @param int $novirtualstock Do not load virtual stock, even if slow option STOCK_SHOW_VIRTUAL_STOCK_IN_PRODUCTS_COMBO is on. * @return void */ protected function constructProductListOption(&$objp, &$opt, &$optJson, $price_level, $selected, $hidepriceinlabel = 0, $filterkey = '', $novirtualstock = 0) @@ -7387,11 +7387,11 @@ class Form * constructTicketListOption. * This define value for &$opt and &$optJson. * - * @param object $objp Result set of fetch - * @param string $opt Option (var used for returned value in string option format) - * @param string $optJson Option (var used for returned value in json format) - * @param string $selected Preselected value - * @param string $filterkey Filter key to highlight + * @param object $objp Result set of fetch + * @param string $opt Option (var used for returned value in string option format) + * @param array $optJson Option (var used for returned value in json format) + * @param string $selected Preselected value + * @param string $filterkey Filter key to highlight * @return void */ protected function constructTicketListOption(&$objp, &$opt, &$optJson, $selected, $filterkey = '') @@ -7593,11 +7593,11 @@ class Form * constructProjectListOption. * This define value for &$opt and &$optJson. * - * @param object $objp Result set of fetch - * @param string $opt Option (var used for returned value in string option format) - * @param string $optJson Option (var used for returned value in json format) - * @param string $selected Preselected value - * @param string $filterkey Filter key to highlight + * @param object $objp Result set of fetch + * @param string $opt Option (var used for returned value in string option format) + * @param array $optJson Option (var used for returned value in json format) + * @param string $selected Preselected value + * @param string $filterkey Filter key to highlight * @return void */ protected function constructProjectListOption(&$objp, &$opt, &$optJson, $selected, $filterkey = '') @@ -7813,11 +7813,11 @@ class Form * constructMemberListOption. * This define value for &$opt and &$optJson. * - * @param object $objp Result set of fetch - * @param string $opt Option (var used for returned value in string option format) - * @param string $optJson Option (var used for returned value in json format) - * @param string $selected Preselected value - * @param string $filterkey Filter key to highlight + * @param object $objp Result set of fetch + * @param string $opt Option (var used for returned value in string option format) + * @param array $optJson Option (var used for returned value in json format) + * @param string $selected Preselected value + * @param string $filterkey Filter key to highlight * @return void */ protected function constructMemberListOption(&$objp, &$opt, &$optJson, $selected, $filterkey = '')