@@ -99,7 +99,7 @@ |
||
99 | 99 | setEventMessages($langs->trans("ErrorValueCantBeNull", dol_trunc(dol_string_nohtmltag($langs->transnoentitiesnoconv("MAIN_MAX_DECIMALS_SHOWN")), 40)), null, 'errors'); |
100 | 100 | $action = 'edit'; |
101 | 101 | } |
102 | - if (! $error && ((float) $valmainmaxdecimalsshown < $valmainmaxdecimalsunit || (float) $valmainmaxdecimalsshown < $valmainmaxdecimalstot)) { |
|
102 | + if (!$error && ((float) $valmainmaxdecimalsshown < $valmainmaxdecimalsunit || (float) $valmainmaxdecimalsshown < $valmainmaxdecimalstot)) { |
|
103 | 103 | $langs->load("errors"); |
104 | 104 | $error++; |
105 | 105 | setEventMessages($langs->trans("ErrorValueForTooLow", dol_trunc(dol_string_nohtmltag($langs->transnoentitiesnoconv("MAIN_MAX_DECIMALS_SHOWN")), 40)), null, 'errors'); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | $action = GETPOST('action', 'aZ09'); |
51 | 51 | $value = GETPOST('value', 'alpha'); |
52 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
52 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
53 | 53 | |
54 | 54 | $label = GETPOST('label', 'alpha'); |
55 | 55 | $scandir = GETPOST('scan_dir', 'alpha'); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | $action = GETPOST('action', 'aZ09'); |
51 | 51 | $value = GETPOST('value', 'alpha'); |
52 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
52 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
53 | 53 | |
54 | 54 | $label = GETPOST('label', 'alpha'); |
55 | 55 | $scandir = GETPOST('scan_dir', 'alpha'); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $langs->loadLangs(array("admin", "other", "trips", "errors", "dict")); |
38 | 38 | |
39 | 39 | // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context |
40 | -$hookmanager->initHooks(array('admin', 'dictionaryadmin','expensereport_rules')); |
|
40 | +$hookmanager->initHooks(array('admin', 'dictionaryadmin', 'expensereport_rules')); |
|
41 | 41 | |
42 | 42 | $object = new ExpenseReportRule($db); |
43 | 43 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | $type = GETPOST('type', 'alpha'); |
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 | $label = GETPOST('label', 'alpha'); |
50 | 50 | $scandir = GETPOST('scan_dir', 'alpha'); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $action = GETPOST('action', 'aZ09'); |
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'); |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | print '</form>'; |
818 | 818 | |
819 | 819 | |
820 | -print '<tr class="oddeven"><td>' . $langs->trans("InvoiceCheckPosteriorDate") . ' ' ; |
|
820 | +print '<tr class="oddeven"><td>' . $langs->trans("InvoiceCheckPosteriorDate") . ' '; |
|
821 | 821 | print $form->textwithpicto('', $langs->trans("InvoiceCheckPosteriorDateHelp"), 1, 'help') . '</td>'; |
822 | 822 | print '<td class="left" colspan="2">'; |
823 | 823 | print ajax_constantonoff('INVOICE_CHECK_POSTERIOR_DATE'); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | // Parameters |
69 | 69 | $action = GETPOST('action', 'aZ09'); |
70 | 70 | $backtopage = GETPOST('backtopage', 'alpha'); |
71 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
71 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
72 | 72 | |
73 | 73 | $value = GETPOST('value', 'alpha'); |
74 | 74 | $label = GETPOST('label', 'alpha'); |
@@ -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) { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $provider . '_NAME', |
157 | 157 | $provider . '_ID', |
158 | 158 | $provider . '_SECRET', |
159 | - $provider . '_URLAUTHORIZE', // For custom oauth links |
|
159 | + $provider . '_URLAUTHORIZE', // For custom oauth links |
|
160 | 160 | $provider . '_SCOPE' // For custom oauth links |
161 | 161 | ); |
162 | 162 | } |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | if (!empty($listinsetup)) { |
169 | 169 | foreach ($listinsetup as $key) { |
170 | 170 | $supported = 0; |
171 | - $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME |
|
171 | + $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME |
|
172 | 172 | $keyforsupportedoauth2array = preg_replace('/^OAUTH_/', '', $keyforsupportedoauth2array); |
173 | 173 | $keyforsupportedoauth2array = preg_replace('/_NAME$/', '', $keyforsupportedoauth2array); |
174 | 174 | if (preg_match('/^.*-/', $keyforsupportedoauth2array)) { |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | if (getDolGlobalString($key[4])) { |
189 | 189 | $shortscope = getDolGlobalString($key[4]); |
190 | 190 | } |
191 | - $state = $shortscope; // TODO USe a better state |
|
191 | + $state = $shortscope; // TODO USe a better state |
|
192 | 192 | |
193 | 193 | // Define $urltorenew, $urltodelete, $urltocheckperms |
194 | 194 | if ($keyforsupportedoauth2array == 'OAUTH_GITHUB_NAME') { |