@@ -128,7 +128,7 @@ |
||
128 | 128 | $error++; |
129 | 129 | } |
130 | 130 | } else { |
131 | - $error = -1; // -1 means a warning message |
|
131 | + $error = -1; // -1 means a warning message |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | if ($error == 0) { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | $action = GETPOST('action', 'aZ09'); |
46 | 46 | $value = GETPOST('value', 'alpha'); |
47 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
47 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
48 | 48 | |
49 | 49 | $type = 'group'; |
50 | 50 |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | if (!empty($conf->use_javascript_ajax) || (isset($conf->global->MAIN_MAIL_SENDMODE_TICKET) && in_array($conf->global->MAIN_MAIL_SENDMODE_TICKET, array('smtps', 'swiftmailer')))) { |
440 | 440 | print '<tr class="oddeven smtp_oauth_service hideifdefault"><td>' . $langs->trans("MAIN_MAIL_SMTPS_OAUTH_SERVICE") . '</td><td>'; |
441 | 441 | // SuperAdministrator access only |
442 | - if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) { |
|
442 | + if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) { |
|
443 | 443 | print $form->selectarray('MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET', $oauthservices, $conf->global->MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET); |
444 | 444 | } else { |
445 | 445 | $text = $oauthservices[getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET')]; |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | // AUTH method |
530 | 530 | if (in_array(getDolGlobalString('MAIN_MAIL_SENDMODE_TICKET'), array('smtps', 'swiftmailer'))) { |
531 | 531 | $authtype = getDolGlobalString('MAIN_MAIL_SMTPS_AUTH_TYPE_TICKET', 'LOGIN'); |
532 | - $text = ($authtype === "LOGIN") ? $langs->trans("UsePassword") : ($authtype === "XOAUTH2" ? $langs->trans("UseOauth") : '') ; |
|
532 | + $text = ($authtype === "LOGIN") ? $langs->trans("UsePassword") : ($authtype === "XOAUTH2" ? $langs->trans("UseOauth") : ''); |
|
533 | 533 | print '<tr class="oddeven hideifdefault"><td>' . $langs->trans("MAIN_MAIL_SMTPS_AUTH_TYPE") . '</td><td>' . $text . '</td></tr>'; |
534 | 534 | } |
535 | 535 |
@@ -52,14 +52,14 @@ |
||
52 | 52 | |
53 | 53 | $value = GETPOST('value', 'alpha'); |
54 | 54 | $label = GETPOST('label', 'alpha'); |
55 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
55 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
56 | 56 | |
57 | 57 | $scandir = GETPOST('scan_dir', 'alpha'); |
58 | 58 | $type = 'evaluation'; |
59 | 59 | |
60 | 60 | $arrayofparameters = array( |
61 | - 'HRM_MAXRANK' => array('type' => 'integer','enabled' => 1), |
|
62 | - 'HRM_DEFAULT_SKILL_DESCRIPTION' => array('type' => 'varchar','enabled' => 1), |
|
61 | + 'HRM_MAXRANK' => array('type' => 'integer', 'enabled' => 1), |
|
62 | + 'HRM_DEFAULT_SKILL_DESCRIPTION' => array('type' => 'varchar', 'enabled' => 1), |
|
63 | 63 | ); |
64 | 64 | |
65 | 65 | $error = 0; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | $action = GETPOST('action', 'alpha'); |
48 | 48 | $value = GETPOST('value', 'alpha'); |
49 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
49 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
50 | 50 | |
51 | 51 | $label = GETPOST('label', 'alpha'); |
52 | 52 | $scandir = GETPOST('scan_dir', 'alpha'); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | // Default sort order (if not yet defined by previous GETPOST) |
76 | 76 | if (!$sortfield) { |
77 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
77 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
78 | 78 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
79 | 79 | } |
80 | 80 | if (!$sortorder) { |
@@ -628,7 +628,7 @@ discard block |
||
628 | 628 | } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) { |
629 | 629 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
630 | 630 | } |
631 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
631 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
632 | 632 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
633 | 633 | print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n"; |
634 | 634 | $totalarray['nbfield']++; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $action = GETPOST('action', 'aZ09'); |
42 | 42 | $backtopage = GETPOST('backtopage', 'alpha'); |
43 | 43 | $value = GETPOST('value', 'alpha'); |
44 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
44 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
45 | 45 | |
46 | 46 | $label = GETPOST('label', 'alpha'); |
47 | 47 | $scandir = GETPOST('scan_dir', 'alpha'); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $title = $langs->trans("Search"); |
104 | 104 | |
105 | 105 | // URL http://mydolibarr/core/search_page?dol_use_jmobile=1 can be used for tests |
106 | -$head = '<!-- Quick access -->' . "\n"; // This is used by DoliDroid to know page is a search page |
|
106 | +$head = '<!-- Quick access -->' . "\n"; // This is used by DoliDroid to know page is a search page |
|
107 | 107 | $arrayofjs = array(); |
108 | 108 | $arrayofcss = array(); |
109 | 109 | top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | $accesskey = ''; |
145 | 145 | if (empty($accesskeyalreadyassigned[$val['label'][0]])) { |
146 | - $accesskey = $val['label'][0]; // First char of string |
|
146 | + $accesskey = $val['label'][0]; // First char of string |
|
147 | 147 | $accesskeyalreadyassigned[$accesskey] = $accesskey; |
148 | 148 | } |
149 | 149 |
@@ -97,7 +97,7 @@ |
||
97 | 97 | $title = $langs->trans("Menu"); |
98 | 98 | |
99 | 99 | // URL http://mydolibarr/core/get_menudiv.php?dol_use_jmobile=1 can be used for tests |
100 | -$head = '<!-- Menu -->' . "\n"; // This is used by DoliDroid to know page is a menu page |
|
100 | +$head = '<!-- Menu -->' . "\n"; // This is used by DoliDroid to know page is a menu page |
|
101 | 101 | $arrayofjs = array(); |
102 | 102 | $arrayofcss = array(); |
103 | 103 | top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss); |