diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index 861d632bc64..46966f1749d 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -1389,7 +1389,7 @@ function pdf_pagefoot(&$pdf, $outputlangs, $paramfreetext, $fromcompany, $marge_ * @param float $w Width of cells. If 0, they extend up to the right margin of the page. * @param float $h Cell minimum height. The cell extends automatically if needed. * @param string $align Align - * @param string $default_font_size Font size + * @param float $default_font_size Font size * @return float The Y PDF position */ function pdf_writeLinkedObjects(&$pdf, $object, $outputlangs, $posx, $posy, $w, $h, $align, $default_font_size) diff --git a/htdocs/webportal/class/html.formlistwebportal.class.php b/htdocs/webportal/class/html.formlistwebportal.class.php index ceb665bc7fa..3c0f8f2eeed 100644 --- a/htdocs/webportal/class/html.formlistwebportal.class.php +++ b/htdocs/webportal/class/html.formlistwebportal.class.php @@ -530,7 +530,6 @@ class FormListWebPortal $html .= ''; $html .= ''; } - $html .= ''; // Signature link if ($elementEn == "propal" && getDolGlobalString("PROPOSAL_ALLOW_ONLINESIGN") != 0) { if (!empty($arrayfields['signature_link']['checked'])) { @@ -538,6 +537,7 @@ class FormListWebPortal $html .= ''; } } + $html .= ''; $totalarray = array(); $totalarray['nbfield'] = 0; diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 2bb2b98ecf9..086320babb0 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -82,7 +82,6 @@ parameters: - '#dol_getIdFromCode expects string, int given#' - '#EvalMath::trigger\(\) expects string, int given#' - '#get_next_value expects string, int given#' - - '#pdf_writeLinkedObjects expects string, int given#' - '# Diff::generatePartialDiff\(\) expects array#' - '# EmailCollector::getpart\(\) expects string#' - '#expects int, float#' diff --git a/scripts/members/sync_members_ldap2dolibarr.php b/scripts/members/sync_members_ldap2dolibarr.php index e7ca87ede7c..785dd35c3ac 100755 --- a/scripts/members/sync_members_ldap2dolibarr.php +++ b/scripts/members/sync_members_ldap2dolibarr.php @@ -3,6 +3,7 @@ /** * Copyright (C) 2005 Rodolphe Quiedeville * Copyright (C) 2006-2015 Laurent Destailleur + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -232,7 +233,7 @@ if ($result >= 0) { if (isset($ldapuser[getDolGlobalString('LDAP_FIELD_MEMBER_STATUS')])) { $member->datec = dol_stringtotime($ldapuser[getDolGlobalString('LDAP_FIELD_MEMBER_FIRSTSUBSCRIPTION_DATE')]); $member->datevalid = dol_stringtotime($ldapuser[getDolGlobalString('LDAP_FIELD_MEMBER_FIRSTSUBSCRIPTION_DATE')]); - $member->statut = $ldapuser[getDolGlobalString('LDAP_FIELD_MEMBER_STATUS')]; + $member->statut = (int) $ldapuser[getDolGlobalString('LDAP_FIELD_MEMBER_STATUS')]; } // if ($member->statut > 1) $member->statut=1;