Completed
Branch develop (4cb5fb)
by
unknown
23:01
created
dev/build/generate_filelist_xml.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  */
25 25
 
26 26
 if (!defined('NOREQUIREDB')) {
27
-	define('NOREQUIREDB', '1');	// Do not create database handler $db
27
+	define('NOREQUIREDB', '1'); // Do not create database handler $db
28 28
 }
29 29
 
30 30
 $sapi_type = php_sapi_name();
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 $result = array();
68 68
 while ($i < $argc) {
69 69
 	if (!empty($argv[$i])) {
70
-		parse_str($argv[$i], $result);	// set all params $release, $includecustom, $includeconstant, $buildzip ...
70
+		parse_str($argv[$i], $result); // set all params $release, $includecustom, $includeconstant, $buildzip ...
71 71
 	}
72 72
 	if (!empty($result["release"])) {
73 73
 		$release = $result["release"];
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
 		$buildzip = 1;
83 83
 	}
84 84
 	if (preg_match('/includeconstant=/', strval($argv[$i]))) {
85
-		$tmp = explode(':', $result['includeconstant'], 3);			// $includeconstant has been set with previous parse_str()
85
+		$tmp = explode(':', $result['includeconstant'], 3); // $includeconstant has been set with previous parse_str()
86 86
 		if (count($tmp) != 3) {
87
-			print "Error: Bad parameter includeconstant=".$result['includeconstant'] ."\n";
87
+			print "Error: Bad parameter includeconstant=".$result['includeconstant']."\n";
88 88
 			exit(1);
89 89
 		}
90 90
 		$includeconstants[$tmp[0]][$tmp[1]] = $tmp[2];
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 }
160 160
 
161 161
 $gitcommit = 'seetag';
162
-$branchname = preg_replace('/^(\d+\.\d+)\..*$/', '\1', $release);	// Keep only x.y into x.y.z
162
+$branchname = preg_replace('/^(\d+\.\d+)\..*$/', '\1', $release); // Keep only x.y into x.y.z
163 163
 $fileforgit = dirname(dirname(dirname(__FILE__))).'/.git/refs/heads/'.$branchname;
164 164
 print "Try to get last commit ID from file ".$fileforgit."\n";
165 165
 $fileforgitcontent = '';
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 
191 191
 // Define qualified files (must be same than into generate_filelist_xml.php and in api_setup.class.php)
192 192
 $regextoinclude = '\.(php|php3|php4|php5|phtml|phps|phar|inc|css|scss|html|xml|js|json|tpl|jpg|jpeg|png|gif|ico|sql|lang|txt|yml|bak|md|mp3|mp4|wav|mkv|z|gz|zip|rar|tar|less|svg|eot|woff|woff2|ttf|manifest)$';
193
-$regextoexclude = '('.($includecustom ? '' : 'custom|').'documents|escpos-php\/doc|escpos-php\/example|escpos-php\/test|conf|install|dejavu-fonts-ttf-.*|public\/test|sabre\/sabre\/.*\/tests|Shared\/PCLZip|nusoap\/lib\/Mail|php\/test|geoip\/sample.*\.php|ckeditor\/samples|ckeditor\/adapters)$';  // Exclude dirs
193
+$regextoexclude = '('.($includecustom ? '' : 'custom|').'documents|escpos-php\/doc|escpos-php\/example|escpos-php\/test|conf|install|dejavu-fonts-ttf-.*|public\/test|sabre\/sabre\/.*\/tests|Shared\/PCLZip|nusoap\/lib\/Mail|php\/test|geoip\/sample.*\.php|ckeditor\/samples|ckeditor\/adapters)$'; // Exclude dirs
194 194
 $files = dol_dir_list(DOL_DOCUMENT_ROOT, 'files', 1, $regextoinclude, $regextoexclude, 'fullname');
195 195
 
196 196
 $dir = '';
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 fputs($fp, '<dolibarr_script_dir version="'.$release.'">'."\n");
234 234
 
235 235
 $regextoinclude = '\.(php|css|html|js|json|tpl|jpg|png|gif|sql|lang)$';
236
-$regextoexclude = '(custom|documents|conf|install)$';  // Exclude dirs
236
+$regextoexclude = '(custom|documents|conf|install)$'; // Exclude dirs
237 237
 $files = dol_dir_list(dirname(__FILE__).'/../../scripts/', 'files', 1, $regextoinclude, $regextoexclude, 'fullname');
238 238
 $dir = '';
239 239
 foreach ($files as $filetmp) {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 fputs($fp, '<dolibarr_unalterable_files version="'.$release.'">'."\n");
275 275
 
276 276
 $regextoinclude = '(\.php|\.sql)$';
277
-$regextoexclude = '';  // Exclude dirs
277
+$regextoexclude = ''; // Exclude dirs
278 278
 $files = dol_dir_list(dirname(__FILE__).'/../../htdocs/blockedlog', 'files', 1, $regextoinclude, $regextoexclude, 'fullname');
279 279
 $dir = '';
280 280
 foreach ($files as $filetmp) {
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 }
303 303
 // Add the SQL file
304 304
 $regextoinclude = 'llx_blockedlog.*(\.php|\.sql)$';
305
-$regextoexclude = '';  // Exclude dirs
305
+$regextoexclude = ''; // Exclude dirs
306 306
 $files = dol_dir_list(dirname(__FILE__).'/../../htdocs/install/mysql/tables', 'files', 0, $regextoinclude, $regextoexclude, 'fullname');
307 307
 foreach ($files as $filetmp) {
308 308
 	$file = $filetmp['fullname'];
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 	$needtoclose = 1;
386 386
 }
387 387
 
388
-$needtoclose = 1;	// This is the last file
388
+$needtoclose = 1; // This is the last file
389 389
 if (filetype($file) == "file") {
390 390
 	$md5 = md5_file($file);
391 391
 	$checksumconcat[] = $md5;
Please login to merge, or discard this patch.
htdocs/comm/action/list.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,16 +50,16 @@  discard block
 block discarded – undo
50 50
 $langs->loadLangs(array("users", "companies", "agenda", "commercial", "other", "orders", "bills"));
51 51
 
52 52
 // Get Parameters
53
-$action 	= GETPOST('action', 'aZ09');
53
+$action = GETPOST('action', 'aZ09');
54 54
 $massaction = GETPOST('massaction', 'alpha');
55
-$confirm 	= GETPOST('confirm', 'alpha');
55
+$confirm = GETPOST('confirm', 'alpha');
56 56
 $cancel     = GETPOST('cancel', 'alpha');
57
-$toselect 	= GETPOST('toselect', 'array:int');
57
+$toselect = GETPOST('toselect', 'array:int');
58 58
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'actioncommlist'; // To manage different context of search
59 59
 $optioncss 	= GETPOST('optioncss', 'alpha');
60 60
 $mode = GETPOST('mode', 'aZ09');
61 61
 if (empty($mode) && preg_match('/show_/', $action)) {
62
-	$mode = $action;	// For backward compatibility
62
+	$mode = $action; // For backward compatibility
63 63
 }
64 64
 
65 65
 $disabledefaultvalues = GETPOSTINT('disabledefaultvalues');
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 if (isModEnabled('category') && $user->hasRight('agenda', 'myactions', 'create')) {
429 429
 	$arrayofmassactions['preaffecttag'] = img_picto('', 'category', 'class="pictofixedwidth"').$langs->trans("AffectTag");
430 430
 }
431
-if (GETPOSTINT('nomassaction') || in_array($massaction, array('presend', 'predelete','preaffecttag'))) {
431
+if (GETPOSTINT('nomassaction') || in_array($massaction, array('presend', 'predelete', 'preaffecttag'))) {
432 432
 	$arrayofmassactions = array();
433 433
 }
434 434
 $massactionbutton = $form->selectMassAction('', $arrayofmassactions);
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 if (($filtert != '-1' && $filtert != '-2') || $usergroup > 0) {
474 474
 	// TODO Replace with a AND EXISTS
475 475
 	$sql .= " INNER JOIN ".MAIN_DB_PREFIX."actioncomm_resources as ar ON ar.fk_actioncomm = a.id AND ar.element_type = 'user'";
476
-	if ($filtert != '' && $filtert != '-1' && $filtert != '-2'  && $filtert != '-3') {
476
+	if ($filtert != '' && $filtert != '-1' && $filtert != '-2' && $filtert != '-3') {
477 477
 		$sql .= " AND (ar.fk_element IN (".$db->sanitize($filtert).") OR (ar.fk_element IS NULL AND a.fk_user_action = ".((int) $filtert)."))"; // The OR is for backward compatibility
478 478
 	} elseif ($filtert == '-3') {
479 479
 		$sql .= " AND ar.fk_element IN (".$db->sanitize(implode(',', $user->getAllChildIds(1))).")";
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
 $reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
489 489
 $sql .= $hookmanager->resPrint;
490 490
 
491
-$sql .= " WHERE a.entity IN (".getEntity('agenda').")";	// bookcal is a "virtual view" of agenda
491
+$sql .= " WHERE a.entity IN (".getEntity('agenda').")"; // bookcal is a "virtual view" of agenda
492 492
 // Condition on actioncode
493 493
 if (!empty($actioncode)) {
494 494
 	if (!getDolGlobalString('AGENDA_USE_EVENT_TYPE')) {
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
 					 * @param string $value
519 519
 					 * @return	bool
520 520
 					 */
521
-					function ($value) {
521
+					function($value) {
522 522
 						return ((string) $value !== '-1');
523 523
 					}
524 524
 				);
@@ -1018,7 +1018,7 @@  discard block
 block discarded – undo
1018 1018
 	$event_owner_style = '';
1019 1019
 	// We decide to choose color of owner of event (event->userownerid is user id of owner, event->userassigned contains all users assigned to event)
1020 1020
 	if ($obj->fk_user_action > 0 && $cache_user_list[$obj->fk_user_action]->color != '') {
1021
-		$event_owner_style .= 'border-left: #' . $cache_user_list[$obj->fk_user_action]->color . ' 5px solid;';
1021
+		$event_owner_style .= 'border-left: #'.$cache_user_list[$obj->fk_user_action]->color.' 5px solid;';
1022 1022
 	}
1023 1023
 
1024 1024
 	// get event style for start and end date
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
 	}
1054 1054
 	$event_start_date_css = $event_end_date_css = $event_more_class;
1055 1055
 
1056
-	print '<tr class="oddeven row-with-select ' . ($event_more_class != '' ? ' '.$event_more_class : '') . '">';
1056
+	print '<tr class="oddeven row-with-select '.($event_more_class != '' ? ' '.$event_more_class : '').'">';
1057 1057
 	// Action column
1058 1058
 	if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
1059 1059
 		print '<td class="nowrap center">';
Please login to merge, or discard this patch.
htdocs/datapolicy/class/datapolicycron.class.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 				'const_anonymize' => 'DATAPOLICY_TIERS_CLIENT_ANONYMIZE_DELAY',
75 75
 				'sql_template' => "SELECT s.rowid FROM ".$prefix."societe as s WHERE s.entity = __ENTITY__ AND s.client = ".Societe::CUSTOMER." AND s.fournisseur = 0 AND s.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
76 76
 				'class' => 'Societe',
77
-				'file' => DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php',
77
+				'file' => DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php',
78 78
 				'anonymize_fields' => array('name' => 'MAKEANONYMOUS', 'name_alias' => 'MAKEANONYMOUS', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone' => '---', 'email' => '[email protected]', 'url' => '---', 'fax' => '---', 'siret' => '---', 'siren' => '---', 'ape' => '---', 'idprof4' => '---', 'idprof5' => '---', 'idprof6' => '---', 'tva_intra' => '---', 'capital' => 0, 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
79 79
 				'call_params' => array(
80 80
 					'delete' => array('id', 'user'), // $object->delete($id, $user)
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 				'const_anonymize' => 'DATAPOLICY_TIERS_PROSPECT_ANONYMIZE_DELAY',
90 90
 				'sql_template' => "SELECT s.rowid FROM ".$prefix."societe as s WHERE s.entity = __ENTITY__ AND s.client = ".Societe::PROSPECT." AND s.fournisseur = 0 AND s.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
91 91
 				'class' => 'Societe',
92
-				'file' => DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php',
92
+				'file' => DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php',
93 93
 				'anonymize_fields' => array('name' => 'MAKEANONYMOUS', 'name_alias' => 'MAKEANONYMOUS', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone' => '---', 'email' => '[email protected]', 'url' => '---', 'fax' => '---', 'siret' => '---', 'siren' => '---', 'ape' => '---', 'idprof4' => '---', 'idprof5' => '---', 'idprof6' => '---', 'tva_intra' => '---', 'capital' => 0, 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
94 94
 				'call_params' => array(
95 95
 					'delete' => array('id', 'user'), // $object->delete($id, $user)
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 				'const_anonymize' => 'DATAPOLICY_TIERS_PROSPECT_CLIENT_ANONYMIZE_DELAY',
105 105
 				'sql_template' => "SELECT s.rowid FROM ".$prefix."societe as s WHERE s.entity = __ENTITY__ AND s.client = ".Societe::CUSTOMER_AND_PROSPECT." AND s.fournisseur = 0 AND s.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
106 106
 				'class' => 'Societe',
107
-				'file' => DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php',
107
+				'file' => DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php',
108 108
 				'anonymize_fields' => array('name' => 'MAKEANONYMOUS', 'name_alias' => 'MAKEANONYMOUS', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone' => '---', 'email' => '[email protected]', 'url' => '---', 'fax' => '---', 'siret' => '---', 'siren' => '---', 'ape' => '---', 'idprof4' => '---', 'idprof5' => '---', 'idprof6' => '---', 'tva_intra' => '---', 'capital' => 0, 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
109 109
 				'call_params' => array(
110 110
 					'delete' => array('id', 'user'), // $object->delete($id, $user)
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 				'sql_template' => "SELECT s.rowid FROM ".$prefix."societe as s WHERE s.entity = __ENTITY__ AND s.client = ".Societe::NO_CUSTOMER." AND s.fournisseur = 0 AND s.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
121 121
 				'sql_template_delete' => "SELECT s.rowid FROM ".$prefix."societe as s WHERE s.entity = __ENTITY__ AND s.client = ".Societe::NO_CUSTOMER." AND s.fournisseur = 0 AND s.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
122 122
 				'class' => 'Societe',
123
-				'file' => DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php',
123
+				'file' => DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php',
124 124
 				'anonymize_fields' => array('name' => 'MAKEANONYMOUS', 'name_alias' => 'MAKEANONYMOUS', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone' => '---', 'email' => '[email protected]', 'url' => '---', 'fax' => '---', 'siret' => '---', 'siren' => '---', 'ape' => '---', 'idprof4' => '---', 'idprof5' => '---', 'idprof6' => '---', 'tva_intra' => '---', 'capital' => 0, 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
125 125
 				'call_params' => array(
126 126
 					'delete' => array('id', 'user'), // $object->delete($id, $user)
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 				'const_anonymize' => 'DATAPOLICY_TIERS_FOURNISSEUR_ANONYMIZE_DELAY',
136 136
 				'sql_template' => "SELECT s.rowid FROM ".$prefix."societe as s WHERE s.entity = __ENTITY__ AND s.fournisseur = 1 AND s.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_soc = s.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
137 137
 				'class' => 'Societe',
138
-				'file' => DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php',
138
+				'file' => DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php',
139 139
 				'anonymize_fields' => array('name' => 'MAKEANONYMOUS', 'name_alias' => 'MAKEANONYMOUS', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone' => '---', 'email' => '[email protected]', 'url' => '---', 'fax' => '---', 'siret' => '---', 'siren' => '---', 'ape' => '---', 'idprof4' => '---', 'idprof5' => '---', 'idprof6' => '---', 'tva_intra' => '---', 'capital' => 0, 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
140 140
 				'call_params' => array(
141 141
 					'delete' => array('id', 'user'), // $object->delete($id, $user)
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 				'const_anonymize' => 'DATAPOLICY_CONTACT_CLIENT_ANONYMIZE_DELAY',
152 152
 				'sql_template' => "SELECT c.rowid FROM ".$prefix."socpeople as c INNER JOIN ".$prefix."societe as s ON s.rowid = c.fk_soc WHERE c.entity = __ENTITY__ AND c.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND s.client = ".Societe::CUSTOMER." AND s.fournisseur = 0 AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
153 153
 				'class' => 'Contact',
154
-				'file' => DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php',
154
+				'file' => DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php',
155 155
 				'anonymize_fields' => array('lastname' => 'MAKEANONYMOUS', 'firstname' => 'MAKEANONYMOUS', 'poste' => '---', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone_pro' => '---', 'phone_perso' => '---', 'phone_mobile' => '---', 'email' => '[email protected]', 'photo' => '', 'url' => '---', 'fax' => '---', 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
156 156
 				'call_params' => array(
157 157
 					'delete' => array('user'), // $object->delete($user)
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 				'const_anonymize' => 'DATAPOLICY_CONTACT_PROSPECT_ANONYMIZE_DELAY',
167 167
 				'sql_template' => "SELECT c.rowid FROM ".$prefix."socpeople as c INNER JOIN ".$prefix."societe as s ON s.rowid = c.fk_soc WHERE c.entity = __ENTITY__ AND c.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND s.client = ".Societe::PROSPECT." AND s.fournisseur = 0 AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
168 168
 				'class' => 'Contact',
169
-				'file' => DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php',
169
+				'file' => DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php',
170 170
 				'anonymize_fields' => array('lastname' => 'MAKEANONYMOUS', 'firstname' => 'MAKEANONYMOUS', 'poste' => '---', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone_pro' => '---', 'phone_perso' => '---', 'phone_mobile' => '---', 'email' => '[email protected]', 'photo' => '', 'url' => '---', 'fax' => '---', 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
171 171
 				'call_params' => array(
172 172
 					'delete' => array('user'), // $object->delete($user)
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 				'const_anonymize' => 'DATAPOLICY_CONTACT_PROSPECT_CLIENT_ANONYMIZE_DELAY',
182 182
 				'sql_template' => "SELECT c.rowid FROM ".$prefix."socpeople as c INNER JOIN ".$prefix."societe as s ON s.rowid = c.fk_soc WHERE c.entity = __ENTITY__ AND c.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND s.client = ".Societe::CUSTOMER_AND_PROSPECT." AND s.fournisseur = 0 AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
183 183
 				'class' => 'Contact',
184
-				'file' => DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php',
184
+				'file' => DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php',
185 185
 				'anonymize_fields' => array('lastname' => 'MAKEANONYMOUS', 'firstname' => 'MAKEANONYMOUS', 'poste' => '---', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone_pro' => '---', 'phone_perso' => '---', 'phone_mobile' => '---', 'email' => '[email protected]', 'photo' => '', 'url' => '---', 'fax' => '---', 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
186 186
 				'call_params' => array(
187 187
 					'delete' => array('user'), // $object->delete($user)
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 				'const_anonymize' => 'DATAPOLICY_CONTACT_NIPROSPECT_NICLIENT_ANONYMIZE_DELAY',
197 197
 				'sql_template' => "SELECT c.rowid FROM ".$prefix."socpeople as c INNER JOIN ".$prefix."societe as s ON s.rowid = c.fk_soc WHERE c.entity = __ENTITY__ AND c.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND s.client = ".Societe::NO_CUSTOMER." AND s.fournisseur = 0 AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
198 198
 				'class' => 'Contact',
199
-				'file' => DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php',
199
+				'file' => DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php',
200 200
 				'anonymize_fields' => array('lastname' => 'MAKEANONYMOUS', 'firstname' => 'MAKEANONYMOUS', 'poste' => '---', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone_pro' => '---', 'phone_perso' => '---', 'phone_mobile' => '---', 'email' => '[email protected]', 'photo' => '', 'url' => '---', 'fax' => '---', 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
201 201
 				'call_params' => array(
202 202
 					'delete' => array('user'), // $object->delete($user)
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 				'const_anonymize' => 'DATAPOLICY_CONTACT_FOURNISSEUR_ANONYMIZE_DELAY',
212 212
 				'sql_template' => "SELECT c.rowid FROM ".$prefix."socpeople as c INNER JOIN ".$prefix."societe as s ON s.rowid = c.fk_soc WHERE c.entity = __ENTITY__ AND c.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND s.fournisseur = 1 AND NOT EXISTS (SELECT a.id FROM ".$prefix."actioncomm as a WHERE a.fk_contact = c.rowid AND a.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH)) AND NOT EXISTS (SELECT f.rowid FROM ".$prefix."facture as f WHERE f.fk_soc = s.rowid)",
213 213
 				'class' => 'Contact',
214
-				'file' => DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php',
214
+				'file' => DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php',
215 215
 				'anonymize_fields' => array('lastname' => 'MAKEANONYMOUS', 'firstname' => 'MAKEANONYMOUS', 'poste' => '---', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone_pro' => '---', 'phone_perso' => '---', 'phone_mobile' => '---', 'email' => '[email protected]', 'photo' => '', 'url' => '---', 'fax' => '---', 'socialnetworks' => [], 'geolat' => 0, 'geolong' => 0, 'ip' => '0.0.0.0'),
216 216
 				'call_params' => array(
217 217
 					'delete' => array('user'), // $object->delete($user)
@@ -233,10 +233,10 @@  discard block
 block discarded – undo
233 233
 				'const_anonymize' => 'DATAPOLICY_ADHERENT_ANONYMIZE_DELAY',
234 234
 				'sql_template' => $sqltemplate,
235 235
 				'class' => 'Adherent',
236
-				'file' => DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php',
236
+				'file' => DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php',
237 237
 				'anonymize_fields' => array('lastname' => 'MAKEANONYMOUS', 'firstname' => 'MAKEANONYMOUS', 'societe' => '---', 'address' => '---', 'town' => '---', 'zip' => '---', 'phone' => '---', 'phone_perso' => '---', 'phone_mobile' => '---', 'email' => '[email protected]', 'birth' => '1900-01-01', 'photo' => '', 'url' => '---', 'fax' => '---', 'socialnetworks' => [], 'ip' => '0.0.0.0'),
238 238
 				'call_params' => array(
239
-					'delete' => array('user'),   // $object->delete($user)
239
+					'delete' => array('user'), // $object->delete($user)
240 240
 					'update' => array('user')    // $object->update($user)
241 241
 				)
242 242
 			);
@@ -252,10 +252,10 @@  discard block
 block discarded – undo
252 252
 				'const_anonymize' => '', // Anonymization not applicable
253 253
 				'sql_template_delete' => "SELECT c.rowid FROM ".$prefix."recruitment_recruitmentcandidature as c WHERE c.entity = __ENTITY__ AND c.tms < DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH) AND NOT EXISTS (SELECT ac.id FROM ".$prefix."actioncomm as ac WHERE ac.elementtype = 'recruitmentcandidature@recruitment' AND ac.fk_element = c.rowid AND ac.tms > DATE_SUB(__NOW__, INTERVAL __DELAY__ MONTH))",
254 254
 				'class' => 'RecruitmentCandidature',
255
-				'file' => DOL_DOCUMENT_ROOT . '/recruitment/class/recruitmentcandidature.class.php',
255
+				'file' => DOL_DOCUMENT_ROOT.'/recruitment/class/recruitmentcandidature.class.php',
256 256
 				'anonymize_fields' => array(),
257 257
 				'call_params' => array(
258
-					'delete' => array('user'),   // $object->delete($user)
258
+					'delete' => array('user'), // $object->delete($user)
259 259
 					'update' => array('user')    // $object->update($user)
260 260
 				)
261 261
 			);
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 		// Iterate through each defined policy to apply its rules.
297 297
 		foreach ($dataPolicies as $policy) {
298 298
 			// Instantiate object only once per class type for efficiency.
299
-			if (! isset($objectInstances[$policy['class']])) {
299
+			if (!isset($objectInstances[$policy['class']])) {
300 300
 				require_once $policy['file'];
301 301
 				$classtoinit = $policy['class'];
302 302
 				$objectInstances[$policy['class']] = new $classtoinit($this->db);
@@ -314,9 +314,9 @@  discard block
 block discarded – undo
314 314
 		}
315 315
 
316 316
 		// Finalize the transaction based on the outcome of all operations.
317
-		if (! $this->errorCount) {
317
+		if (!$this->errorCount) {
318 318
 			$this->db->commit();
319
-			$this->output = $this->nbupdated . ' record(s) anonymized, ' . $this->nbdeleted . ' record(s) deleted.';
319
+			$this->output = $this->nbupdated.' record(s) anonymized, '.$this->nbdeleted.' record(s) deleted.';
320 320
 		} else {
321 321
 			$this->db->rollback();
322 322
 			$this->error = implode("\n", $this->errorMessages);
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 	 */
340 340
 	private function _processPolicyAction($policy, $action, $object, &$processedIds, $conf, $user)
341 341
 	{
342
-		$constName = $policy['const_' . $action] ?? null;
342
+		$constName = $policy['const_'.$action] ?? null;
343 343
 		$delay = $constName ? getDolGlobalInt($constName) : 0;
344 344
 
345 345
 		if ($delay <= 0) {
@@ -350,25 +350,25 @@  discard block
 block discarded – undo
350 350
 		$sqlPlaceholders = array(
351 351
 			'__ENTITY__' => (string) $conf->entity,
352 352
 			'__DELAY__' => (string) $delay,
353
-			'__NOW__' => "'" . $this->db->idate(dol_now()) . "'"
353
+			'__NOW__' => "'".$this->db->idate(dol_now())."'"
354 354
 		);
355 355
 		$sql = str_replace(array_keys($sqlPlaceholders), array_values($sqlPlaceholders), $policy['sql_template']);
356 356
 
357 357
 		$resql = $this->db->query($sql);
358 358
 
359
-		if (! $resql) {
359
+		if (!$resql) {
360 360
 			$this->errorCount++;
361
-			$this->errorMessages[] = 'Error executing ' . $action . ' query for policy ' . $constName . ': ' . $this->db->lasterror();
361
+			$this->errorMessages[] = 'Error executing '.$action.' query for policy '.$constName.': '.$this->db->lasterror();
362 362
 
363 363
 			return;
364 364
 		}
365 365
 
366 366
 		// Define the handler method for the action
367
-		$handlerMethod = '_handle' . ucfirst($action);
367
+		$handlerMethod = '_handle'.ucfirst($action);
368 368
 
369 369
 		// Process the records found by the query
370 370
 		while ($obj = $this->db->fetch_object($resql)) {
371
-			if (in_array($obj->rowid, $processedIds) || ! method_exists($this, $handlerMethod)) {
371
+			if (in_array($obj->rowid, $processedIds) || !method_exists($this, $handlerMethod)) {
372 372
 				continue;
373 373
 			}
374 374
 			/** @var CommonObject $object */
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
 		foreach ($policy['anonymize_fields'] as $field => $val) {
417 417
 			if ($val == 'MAKEANONYMOUS') {
418 418
 				// For each field with rule "MAKEANONYMOUS, set the new value, keeping the ID.
419
-				$object->$field = $field . '-anon-' . $object->id;
419
+				$object->$field = $field.'-anon-'.$object->id;
420 420
 			} else {
421 421
 				// For others, force the value, but only if not already empty.
422 422
 				if (!empty($object->$field)) {
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 			 * @param	string$paramName	Name of parameter to get
455 455
 			 * @return	mixed				Parameter value
456 456
 			 */
457
-			static function (string $paramName) use ($availableArgs) {
457
+			static function(string $paramName) use ($availableArgs) {
458 458
 				return $availableArgs[$paramName];
459 459
 			},
460 460
 			$paramConfig
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 	{
474 474
 		if ($result <= 0) {
475 475
 			$this->errorCount++;
476
-			$this->errorMessages[] = 'Failed to ' . $action . ' record ID ' . $object->id . ' from class ' . get_class($object) . '. Error: ' . $object->errorsToString();
476
+			$this->errorMessages[] = 'Failed to '.$action.' record ID '.$object->id.' from class '.get_class($object).'. Error: '.$object->errorsToString();
477 477
 		} else {
478 478
 			if ($action === 'delete') {
479 479
 				$this->nbdeleted++;
Please login to merge, or discard this patch.
htdocs/webportal/controllers/documentlist.controller.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 
21
-require_once __DIR__ . '/abstractdocument.controller.class.php';
21
+require_once __DIR__.'/abstractdocument.controller.class.php';
22 22
 
23 23
 /**
24 24
  * \file        htdocs/webportal/controllers/documentlist.controller.class.php
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
 
91 91
 		if (!empty($thirdparty) && $thirdparty->id) {
92 92
 			// 1. Prepare data
93
-			require_once DOL_DOCUMENT_ROOT . '/core/lib/functions.lib.php';
93
+			require_once DOL_DOCUMENT_ROOT.'/core/lib/functions.lib.php';
94 94
 			$client_dir_name = dol_sanitizeFileName($thirdparty->ref);
95
-			$dir_ged_tiers = $conf->societe->dir_output . '/' . $client_dir_name;
95
+			$dir_ged_tiers = $conf->societe->dir_output.'/'.$client_dir_name;
96 96
 			$fileList = dol_dir_list($dir_ged_tiers, 'files', 0, '', '', 'date', SORT_DESC);
97 97
 
98 98
 			// 2. Define the link builder function
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
 			 * @return	string						Url for file
104 104
 			 */
105 105
 			$linkBuilder
106
-				= static function (array $file) use ($client_dir_name) {
107
-					return DOL_URL_ROOT . '/document.php?modulepart=societe&attachment=1&file=' . urlencode($client_dir_name . '/' . $file['name']);
106
+				= static function(array $file) use ($client_dir_name) {
107
+					return DOL_URL_ROOT.'/document.php?modulepart=societe&attachment=1&file='.urlencode($client_dir_name.'/'.$file['name']);
108 108
 				};
109 109
 
110 110
 			// 3. Call the parent method to display the table
Please login to merge, or discard this patch.
htdocs/webportal/controllers/shareddocuments.controller.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * the Free Software Foundation.
9 9
  */
10 10
 
11
-require_once __DIR__ . '/abstractdocument.controller.class.php';
11
+require_once __DIR__.'/abstractdocument.controller.class.php';
12 12
 
13 13
 /**
14 14
  * \file        htdocs/webportal/controllers/shareddocuments.controller.class.php
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 
79 79
 		// 1. Prepare data for this controller
80 80
 		$shared_dir_name = getDolGlobalString('WEBPORTAL_SHARED_DOCS_DIR', 'Documentscomptes');
81
-		$dir_ged_partage = $conf->ecm->dir_output . '/' . $shared_dir_name;
82
-		$shared_dir_relative_path = 'ecm/' . $shared_dir_name;
81
+		$dir_ged_partage = $conf->ecm->dir_output.'/'.$shared_dir_name;
82
+		$shared_dir_relative_path = 'ecm/'.$shared_dir_name;
83 83
 		$fileList = dol_dir_list($dir_ged_partage, 'files', 0, '', '', 'date', SORT_DESC);
84 84
 
85 85
 		// 2. Define the link builder function
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 		 * @return	string						Url for file
91 91
 		 */
92 92
 		$linkBuilder
93
-			= static function (array $file) use ($shared_dir_relative_path) {
94
-				return DOL_URL_ROOT . '/document.php?modulepart=ecm&file=' . urlencode($shared_dir_relative_path . '/' . $file['name']);
93
+			= static function(array $file) use ($shared_dir_relative_path) {
94
+				return DOL_URL_ROOT.'/document.php?modulepart=ecm&file='.urlencode($shared_dir_relative_path.'/'.$file['name']);
95 95
 			};
96 96
 
97 97
 		// 3. Call the parent method to display the table
Please login to merge, or discard this patch.
htdocs/fourn/facture/list.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 $search_multicurrency_montant_ht = GETPOST('search_multicurrency_montant_ht', 'alpha');
94 94
 $search_multicurrency_montant_vat = GETPOST('search_multicurrency_montant_vat', 'alpha');
95 95
 $search_multicurrency_montant_ttc = GETPOST('search_multicurrency_montant_ttc', 'alpha');
96
-$search_status = GETPOST('search_status', 'intcomma');	// Can be '' or a numeric
96
+$search_status = GETPOST('search_status', 'intcomma'); // Can be '' or a numeric
97 97
 $search_paymentmode = GETPOST('search_paymentmode', 'intcomma');
98 98
 $search_paymentcond = GETPOST('search_paymentcond') ? GETPOSTINT('search_paymentcond') : '';
99 99
 $search_vat_reverse_charge = GETPOST('search_vat_reverse_charge', 'alpha');
@@ -686,16 +686,16 @@  discard block
 block discarded – undo
686 686
 	$sql .= " AND f.vat_reverse_charge = ".((int) $search_vat_reverse_charge);
687 687
 }
688 688
 if ($search_date_start) {
689
-	$sql .= " AND f.datef >= '" . $db->idate($search_date_start) . "'";
689
+	$sql .= " AND f.datef >= '".$db->idate($search_date_start)."'";
690 690
 }
691 691
 if ($search_date_end) {
692
-	$sql .= " AND f.datef <= '" . $db->idate($search_date_end) . "'";
692
+	$sql .= " AND f.datef <= '".$db->idate($search_date_end)."'";
693 693
 }
694 694
 if ($search_datelimit_start) {
695
-	$sql .= " AND f.date_lim_reglement >= '" . $db->idate($search_datelimit_start) . "'";
695
+	$sql .= " AND f.date_lim_reglement >= '".$db->idate($search_datelimit_start)."'";
696 696
 }
697 697
 if ($search_datelimit_end) {
698
-	$sql .= " AND f.date_lim_reglement <= '" . $db->idate($search_datelimit_end) . "'";
698
+	$sql .= " AND f.date_lim_reglement <= '".$db->idate($search_datelimit_end)."'";
699 699
 }
700 700
 if ($option == 'late') {
701 701
 	$sql .= " AND f.date_lim_reglement < '".$db->idate(dol_now() - $conf->facture->fournisseur->warning_delay)."'";
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
 			if ($searchCategorySupplierInvoiceOperator == 0) {
726 726
 				$searchCategorySupplierInvoiceSqlList[] = " EXISTS (SELECT ck.fk_supplier_invoice FROM ".MAIN_DB_PREFIX."categorie_supplier_invoice as ck WHERE f.rowid = ck.fk_supplier_invoice AND ck.fk_categorie = ".((int) $searchCategorySupplierInvoice).")";
727 727
 			} else {
728
-				$listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategorySupplierInvoice);
728
+				$listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategorySupplierInvoice);
729 729
 			}
730 730
 		}
731 731
 	}
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 			if ($searchCategorySupplierOperator == 0) {
756 756
 				$searchCategorySupplierSqlList[] = " EXISTS (SELECT ck.fk_soc FROM ".MAIN_DB_PREFIX."categorie_fournisseur as ck WHERE s.rowid = ck.fk_soc AND ck.fk_categorie = ".((int) $searchCategorySupplier).")";
757 757
 			} else {
758
-				$listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategorySupplier);
758
+				$listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategorySupplier);
759 759
 			}
760 760
 		}
761 761
 	}
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
 			if ($searchCategoryProductOperator == 0) {
786 786
 				$searchCategoryProductSqlList[] = " EXISTS (SELECT ck.fk_product FROM ".MAIN_DB_PREFIX."categorie_product as ck, ".MAIN_DB_PREFIX."facture_fourn_det as fd WHERE fd.fk_facture_fourn = f.rowid AND fd.fk_product = ck.fk_product AND ck.fk_categorie = ".((int) $searchCategoryProduct).")";
787 787
 			} else {
788
-				$listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryProduct);
788
+				$listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryProduct);
789 789
 			}
790 790
 		}
791 791
 	}
@@ -892,8 +892,8 @@  discard block
 block discarded – undo
892 892
 llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'bodyforlist mod-fourn-facture page-list');
893 893
 
894 894
 if ($search_fk_fac_rec_source) {
895
-	require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture-rec.class.php';
896
-	require_once DOL_DOCUMENT_ROOT . '/core/lib/invoice.lib.php';
895
+	require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture-rec.class.php';
896
+	require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
897 897
 	$object = new FactureFournisseurRec($db);
898 898
 	$object->fetch((int) $search_fk_fac_rec_source);
899 899
 
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
 	$param .= '&search_type_thirdparty='.$search_type_thirdparty;
1044 1044
 }
1045 1045
 if ($search_fk_fac_rec_source) {
1046
-	$param .= '&search_fk_fac_rec_source=' . (int) $search_fk_fac_rec_source;
1046
+	$param .= '&search_fk_fac_rec_source='.(int) $search_fk_fac_rec_source;
1047 1047
 }
1048 1048
 
1049 1049
 // Add $param from extra fields
@@ -1176,7 +1176,7 @@  discard block
 block discarded – undo
1176 1176
 }
1177 1177
 
1178 1178
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
1179
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
1179
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
1180 1180
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
1181 1181
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
1182 1182
 
@@ -2050,7 +2050,7 @@  discard block
 block discarded – undo
2050 2050
 				$totalarray['pos'][$totalarray['nbfield']] = 'totalam';
2051 2051
 			}
2052 2052
 			if (empty($totalarray['val']['totalam'])) {
2053
-				$totalarray['val']['totalam'] = 0;		// avoid PHP Warning:  Undefined array key "totalam" on line 1891
2053
+				$totalarray['val']['totalam'] = 0; // avoid PHP Warning:  Undefined array key "totalam" on line 1891
2054 2054
 			}
2055 2055
 			$totalarray['val']['totalam'] += $totalpay;
2056 2056
 		}
Please login to merge, or discard this patch.