mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 14:01:22 +01:00
Qual: Fix phan notices (#31372)
* fix llx_webhook_target-webhook.sql * Fix commande/list & facture-rec.class * Fix bonprelevement * Qual: Fix prelevement/create notices * Qual: fix quadridetail notices & update baseline * Qual: Fix CommonDocGenerator notices * Qual: Fix commoninvoice and commonobjectline notices (phan/phpstan) --------- Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
This commit is contained in:
@@ -3306,7 +3306,7 @@ function dol_strftime($fmt, $ts = false, $is_gmt = false)
|
||||
* false or 'tzserver' => output string is for local PHP server TZ usage
|
||||
* 'tzuser' => output string is for user TZ (current browser TZ with current dst) => In a future, we should have same behaviour than 'tzuserrel'
|
||||
* 'tzuserrel' => output string is for user TZ (current browser TZ with dst or not, depending on date position)
|
||||
* @param Translate $outputlangs Object lang that contains language for text translation.
|
||||
* @param ?Translate $outputlangs Object lang that contains language for text translation.
|
||||
* @param boolean $encodetooutput false=no convert into output pagecode
|
||||
* @return string Formatted date or '' if time is null
|
||||
*
|
||||
@@ -12512,7 +12512,7 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url =
|
||||
if (!empty($subbutton['attr'])) {
|
||||
$subbuttonparam['attr'] = $subbutton['attr'];
|
||||
}
|
||||
$subbuttonparam['isDropDown'] = (empty($params['isDropDown']) ? ($subbutton['isDropDown']??false) : $params['isDropDown']);
|
||||
$subbuttonparam['isDropDown'] = (empty($params['isDropDown']) ? ($subbutton['isDropDown'] ?? false) : $params['isDropDown']);
|
||||
|
||||
$out .= dolGetButtonAction('', $langs->trans($subbutton['label']), 'default', $tmpurl, $subbutton['id'] ?? '', $subbutton['perm'], $subbuttonparam);
|
||||
}
|
||||
@@ -12687,7 +12687,7 @@ function dolCompletUrlForDropdownButton(string $url, array $params, bool $addDol
|
||||
// Use parse_str() function to parse the string passed via URL
|
||||
parse_str($parsedUrl['query'], $urlQuery);
|
||||
if (!isset($urlQuery['backtopage']) && isset($params['backtopage'])) {
|
||||
$url.= '&backtopage='.urlencode($params['backtopage']);
|
||||
$url .= '&backtopage='.urlencode($params['backtopage']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user