forked from Wavyzz/dolibarr
Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
1
htdocs/.gitignore
vendored
1
htdocs/.gitignore
vendored
@@ -21,7 +21,6 @@
|
||||
/cabinetmed*
|
||||
/webmail*
|
||||
/conf/conf.php
|
||||
/subtotal*
|
||||
/abricot*
|
||||
/nomenclature*
|
||||
/of/
|
||||
|
||||
@@ -2788,8 +2788,9 @@ class ActionComm extends CommonObject
|
||||
// Content
|
||||
$sendContent = make_substitutions($langs->trans($arraymessage->content), $substitutionarray);
|
||||
|
||||
//Topic
|
||||
$sendTopic = (!empty($arraymessage->topic)) ? $arraymessage->topic : html_entity_decode($langs->transnoentities('EventReminder'));
|
||||
// Topic
|
||||
$sendTopic = (!empty($arraymessage->topic)) ? $arraymessage->topic : $langs->transnoentitiesnoconv('EventReminder');
|
||||
$sendTopic = make_substitutions($sendTopic, $substitutionarray);
|
||||
|
||||
// Recipient
|
||||
$recipient = new User($this->db);
|
||||
|
||||
@@ -82,6 +82,7 @@ class modCaptchaStandard extends ModeleCaptcha
|
||||
global $db, $conf, $langs, $user;
|
||||
|
||||
$generator = new modGeneratePassStandard($db, $conf, $langs, $user);
|
||||
$generator->length = '5';
|
||||
$example = $generator->getExample();
|
||||
|
||||
if (function_exists("imagecreate") && function_exists("imagepng")) {
|
||||
@@ -89,7 +90,7 @@ class modCaptchaStandard extends ModeleCaptcha
|
||||
if (!$img) {
|
||||
return "Problem with GD creation";
|
||||
}
|
||||
//$background_color = imagecolorallocate($img, 250, 250, 250);
|
||||
$background_color = imagecolorallocate($img, 250, 250, 250); // do not comment this line
|
||||
$ecriture_color = imagecolorallocate($img, 0, 0, 0);
|
||||
imagestring($img, 4, 15, 8, $example, $ecriture_color);
|
||||
|
||||
|
||||
@@ -1626,7 +1626,7 @@ $totalarray['val'] = array();
|
||||
$totalarray['val']['f.total_ht'] = 0;
|
||||
$totalarray['val']['f.total_vat'] = 0;
|
||||
$totalarray['val']['f.total_localtax1'] = 0;
|
||||
$totalarray['val']['f.total_localtax1'] = 0;
|
||||
$totalarray['val']['f.total_localtax2'] = 0;
|
||||
$totalarray['val']['f.total_ttc'] = 0;
|
||||
$totalarray['val']['totalam'] = 0;
|
||||
$totalarray['val']['rtp'] = 0;
|
||||
@@ -2049,9 +2049,6 @@ while ($i < $imaxinloop) {
|
||||
$totalarray['nbfield']++;
|
||||
$totalarray['pos'][$totalarray['nbfield']] = 'totalam';
|
||||
}
|
||||
if (empty($totalarray['val']['totalam'])) {
|
||||
$totalarray['val']['totalam'] = 0; // avoid PHP Warning: Undefined array key "totalam" on line 1891
|
||||
}
|
||||
$totalarray['val']['totalam'] += $totalpay;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user