@@ -59,7 +59,7 @@ |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | $usestripeterminals = getDolGlobalString('STRIPE_LOCATION'); |
| 62 | -if (! $usestripeterminals) { |
|
| 62 | +if (!$usestripeterminals) { |
|
| 63 | 63 | accessforbidden('Feature to use Stripe terminals not enabled'); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -488,7 +488,7 @@ discard block |
||
| 488 | 488 | "confirmation_method" => $mode, |
| 489 | 489 | "amount" => $stripeamount, |
| 490 | 490 | "currency" => $currency_code, |
| 491 | - "payment_method_types" => $paymentmethodtypes, // When payment_method_types is set, return_url is not required but payment mode can't be managed from dashboard |
|
| 491 | + "payment_method_types" => $paymentmethodtypes, // When payment_method_types is set, return_url is not required but payment mode can't be managed from dashboard |
|
| 492 | 492 | /* |
| 493 | 493 | 'return_url' => $dolibarr_main_url_root.'/public/payment/paymentok.php', |
| 494 | 494 | 'automatic_payment_methods' => array( |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | ); |
| 504 | 504 | if ($descriptor) { |
| 505 | 505 | $dataforintent["statement_descriptor_suffix"] = $descriptor; // For card payment, 22 chars that appears on bank receipt (prefix into stripe setup + this suffix) |
| 506 | - $dataforintent["statement_descriptor"] = $descriptor; // For SEPA, it will take only statement_descriptor, not statement_descriptor_suffix |
|
| 506 | + $dataforintent["statement_descriptor"] = $descriptor; // For SEPA, it will take only statement_descriptor, not statement_descriptor_suffix |
|
| 507 | 507 | } |
| 508 | 508 | if (!is_null($customer)) { |
| 509 | 509 | $dataforintent["customer"] = $customer; |
@@ -712,7 +712,7 @@ discard block |
||
| 712 | 712 | |
| 713 | 713 | $dataforintent = array( |
| 714 | 714 | "confirm" => $confirmnow, // Do not confirm immediately during creation of intent |
| 715 | - "payment_method_types" => $paymentmethodtypes, // When payment_method_types is set, return_url is not required but payment mode can't be managed from dashboard |
|
| 715 | + "payment_method_types" => $paymentmethodtypes, // When payment_method_types is set, return_url is not required but payment mode can't be managed from dashboard |
|
| 716 | 716 | /* |
| 717 | 717 | 'return_url' => $dolibarr_main_url_root.'/public/payment/paymentok.php', |
| 718 | 718 | 'automatic_payment_methods' => array( |
@@ -1128,7 +1128,7 @@ discard block |
||
| 1128 | 1128 | } catch (Exception $e) { |
| 1129 | 1129 | $sepa = null; |
| 1130 | 1130 | $this->error = 'Stripe error: ' . $e->getMessage() . '. Check the BAN information.'; |
| 1131 | - dol_syslog($this->error, LOG_WARNING); // Error from Stripe, so a warning on Dolibarr |
|
| 1131 | + dol_syslog($this->error, LOG_WARNING); // Error from Stripe, so a warning on Dolibarr |
|
| 1132 | 1132 | } |
| 1133 | 1133 | } |
| 1134 | 1134 | } |
@@ -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'); |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | $maxfilesizearray = getMaxFileSizeArray(); |
| 190 | 190 | $maxmin = $maxfilesizearray['maxmin']; |
| 191 | 191 | if ($maxmin > 0) { |
| 192 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 192 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 193 | 193 | } |
| 194 | 194 | $texte .= ' <input type="file" name="uploadfile">'; |
| 195 | 195 | $texte .= '<input type="hidden" value="MYMODULE_MYOBJECT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $object = new MyObject($db); |
| 121 | 121 | $extrafields = new ExtraFields($db); |
| 122 | 122 | $diroutputmassaction = $conf->mymodule->dir_output . '/temp/massgeneration/' . $user->id; |
| 123 | -$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes |
|
| 123 | +$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes |
|
| 124 | 124 | |
| 125 | 125 | // Fetch optionals attributes and labels |
| 126 | 126 | $extrafields->fetch_name_optionals_label($object->table_element); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | // Default sort order (if not yet defined by previous GETPOST) |
| 132 | 132 | if (!$sortfield) { |
| 133 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 133 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 134 | 134 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
| 135 | 135 | } |
| 136 | 136 | if (!$sortorder) { |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | // Output page |
| 451 | 451 | // -------------------------------------------------------------------- |
| 452 | 452 | |
| 453 | -llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'mod-mymodule page-list bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll |
|
| 453 | +llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'mod-mymodule page-list bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll |
|
| 454 | 454 | |
| 455 | 455 | // Example : Adding jquery code |
| 456 | 456 | // print '<script type="text/javascript"> |
@@ -674,7 +674,7 @@ discard block |
||
| 674 | 674 | } 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'])) { |
| 675 | 675 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
| 676 | 676 | } |
| 677 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
| 677 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
| 678 | 678 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
| 679 | 679 | 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"; |
| 680 | 680 | $totalarray['nbfield']++; |
@@ -89,13 +89,13 @@ |
||
| 89 | 89 | // Get parameters |
| 90 | 90 | $id = GETPOST('id', 'int'); |
| 91 | 91 | $ref = GETPOST('ref', 'alpha'); |
| 92 | -$lineid = GETPOST('lineid', 'int'); |
|
| 92 | +$lineid = GETPOST('lineid', 'int'); |
|
| 93 | 93 | |
| 94 | 94 | $action = GETPOST('action', 'aZ09'); |
| 95 | 95 | $confirm = GETPOST('confirm', 'alpha'); |
| 96 | 96 | $cancel = GETPOST('cancel', 'aZ09'); |
| 97 | 97 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search |
| 98 | -$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
| 98 | +$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
| 99 | 99 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used |
| 100 | 100 | $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha'); |
| 101 | 101 | $dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09'); |
@@ -171,8 +171,8 @@ discard block |
||
| 171 | 171 | /** |
| 172 | 172 | * @var int Thirdparty ID |
| 173 | 173 | */ |
| 174 | - public $socid; // both socid and fk_soc are used |
|
| 175 | - public $fk_soc; // both socid and fk_soc are used |
|
| 174 | + public $socid; // both socid and fk_soc are used |
|
| 175 | + public $fk_soc; // both socid and fk_soc are used |
|
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | 178 | * @var int Status |
@@ -1058,7 +1058,7 @@ discard block |
||
| 1058 | 1058 | $this->date_creation = $this->db->jdate($obj->datec); |
| 1059 | 1059 | $this->date_modification = empty($obj->datem) ? '' : $this->db->jdate($obj->datem); |
| 1060 | 1060 | if (!empty($obj->datev)) { |
| 1061 | - $this->date_validation = empty($obj->datev) ? '' : $this->db->jdate($obj->datev); |
|
| 1061 | + $this->date_validation = empty($obj->datev) ? '' : $this->db->jdate($obj->datev); |
|
| 1062 | 1062 | } |
| 1063 | 1063 | } |
| 1064 | 1064 | |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | |
| 386 | 386 | clearstatcache(true); |
| 387 | 387 | if (function_exists('opcache_invalidate')) { |
| 388 | - opcache_reset(); // remove the include cache hell ! |
|
| 388 | + opcache_reset(); // remove the include cache hell ! |
|
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | header("Location: " . $_SERVER['PHP_SELF'] . '?module=' . $modulename); |
@@ -880,7 +880,7 @@ discard block |
||
| 880 | 880 | } |
| 881 | 881 | $stringLog = implode("\n", $strreplace); |
| 882 | 882 | // @phan-suppress-next-line PhanPluginSuspiciousParamPosition |
| 883 | - dolReplaceInFile($destfile, array('//include::ChangeLog.md[]' => '','__CHANGELOG__' => $stringLog)); |
|
| 883 | + dolReplaceInFile($destfile, array('//include::ChangeLog.md[]' => '', '__CHANGELOG__' => $stringLog)); |
|
| 884 | 884 | } |
| 885 | 885 | |
| 886 | 886 | // Delete old documentation files |
@@ -1534,7 +1534,7 @@ discard block |
||
| 1534 | 1534 | } |
| 1535 | 1535 | } |
| 1536 | 1536 | $menus = $moduleobj->menu; |
| 1537 | - $counter = 0 ; |
|
| 1537 | + $counter = 0; |
|
| 1538 | 1538 | foreach ($menus as $menu) { |
| 1539 | 1539 | if ($menu['leftmenu'] == strtolower($objectname)) { |
| 1540 | 1540 | $counter++; |
@@ -1676,7 +1676,7 @@ discard block |
||
| 1676 | 1676 | } else { |
| 1677 | 1677 | createNewDictionnary($module, $moduledescriptorfile, $newdicname, $dictionaries); |
| 1678 | 1678 | if (function_exists('opcache_invalidate')) { |
| 1679 | - opcache_reset(); // remove the include cache hell ! |
|
| 1679 | + opcache_reset(); // remove the include cache hell ! |
|
| 1680 | 1680 | } |
| 1681 | 1681 | clearstatcache(true); |
| 1682 | 1682 | header("Location: " . DOL_URL_ROOT . '/modulebuilder/index.php?tab=dictionaries&module=' . $module . ($forceddirread ? '@' . $dirread : '')); |
@@ -1771,7 +1771,7 @@ discard block |
||
| 1771 | 1771 | 'isameasure' => GETPOSTINT('propisameasure'), |
| 1772 | 1772 | 'comment' => GETPOST('propcomment', 'alpha'), |
| 1773 | 1773 | 'help' => GETPOST('prophelp', 'alpha'), |
| 1774 | - 'css' => GETPOST('propcss', 'alpha'), // Can be 'maxwidth500 widthcentpercentminusxx' for example |
|
| 1774 | + 'css' => GETPOST('propcss', 'alpha'), // Can be 'maxwidth500 widthcentpercentminusxx' for example |
|
| 1775 | 1775 | 'cssview' => GETPOST('propcssview', 'alpha'), |
| 1776 | 1776 | 'csslist' => GETPOST('propcsslist', 'alpha'), |
| 1777 | 1777 | 'default' => GETPOST('propdefault', 'restricthtml'), |
@@ -1926,7 +1926,7 @@ discard block |
||
| 1926 | 1926 | |
| 1927 | 1927 | clearstatcache(true); |
| 1928 | 1928 | if (function_exists('opcache_invalidate')) { |
| 1929 | - opcache_reset(); // remove the include cache hell ! |
|
| 1929 | + opcache_reset(); // remove the include cache hell ! |
|
| 1930 | 1930 | } |
| 1931 | 1931 | |
| 1932 | 1932 | header("Location: " . $_SERVER['PHP_SELF'] . '?module=deletemodule'); |
@@ -2018,7 +2018,7 @@ discard block |
||
| 2018 | 2018 | |
| 2019 | 2019 | clearstatcache(true); |
| 2020 | 2020 | if (function_exists('opcache_invalidate')) { |
| 2021 | - opcache_reset(); // remove the include cache hell ! |
|
| 2021 | + opcache_reset(); // remove the include cache hell ! |
|
| 2022 | 2022 | } |
| 2023 | 2023 | $resultko = 0; |
| 2024 | 2024 | foreach ($filetodelete as $tmpfiletodelete) { |
@@ -2038,7 +2038,7 @@ discard block |
||
| 2038 | 2038 | } |
| 2039 | 2039 | |
| 2040 | 2040 | $action = ''; |
| 2041 | - if (! $error) { |
|
| 2041 | + if (!$error) { |
|
| 2042 | 2042 | $tabobj = 'newobject'; |
| 2043 | 2043 | } else { |
| 2044 | 2044 | $tabobj = 'deleteobject'; |
@@ -2142,7 +2142,7 @@ discard block |
||
| 2142 | 2142 | setEventMessages($langs->trans("DictionaryDeleted", ucfirst(substr($newdicname, 2))), null); |
| 2143 | 2143 | } |
| 2144 | 2144 | if (function_exists('opcache_invalidate')) { |
| 2145 | - opcache_reset(); // remove the include cache hell ! |
|
| 2145 | + opcache_reset(); // remove the include cache hell ! |
|
| 2146 | 2146 | } |
| 2147 | 2147 | clearstatcache(true); |
| 2148 | 2148 | header("Location: " . DOL_URL_ROOT . '/modulebuilder/index.php?tab=dictionaries&module=' . $module . ($forceddirread ? '@' . $dirread : '')); |
@@ -2150,7 +2150,7 @@ discard block |
||
| 2150 | 2150 | } |
| 2151 | 2151 | } |
| 2152 | 2152 | if ($dirins && $action == 'updatedictionary' && GETPOST('dictionnarykey')) { |
| 2153 | - $keydict = GETPOST('dictionnarykey') - 1 ; |
|
| 2153 | + $keydict = GETPOST('dictionnarykey') - 1; |
|
| 2154 | 2154 | |
| 2155 | 2155 | $pathtofile = $listofmodules[strtolower($module)]['moduledescriptorrelpath']; |
| 2156 | 2156 | $destdir = $dirins . '/' . strtolower($module); |
@@ -2184,7 +2184,7 @@ discard block |
||
| 2184 | 2184 | setEventMessages($langs->trans("DictionaryNameUpdated", ucfirst(GETPOST('tablib'))), null); |
| 2185 | 2185 | } |
| 2186 | 2186 | if (function_exists('opcache_invalidate')) { |
| 2187 | - opcache_reset(); // remove the include cache hell ! |
|
| 2187 | + opcache_reset(); // remove the include cache hell ! |
|
| 2188 | 2188 | } |
| 2189 | 2189 | clearstatcache(true); |
| 2190 | 2190 | header("Location: " . DOL_URL_ROOT . '/modulebuilder/index.php?tab=dictionaries&module=' . $module . ($forceddirread ? '@' . $dirread : '')); |
@@ -2359,7 +2359,7 @@ discard block |
||
| 2359 | 2359 | |
| 2360 | 2360 | clearstatcache(true); |
| 2361 | 2361 | if (function_exists('opcache_invalidate')) { |
| 2362 | - opcache_reset(); // remove the include cache hell ! |
|
| 2362 | + opcache_reset(); // remove the include cache hell ! |
|
| 2363 | 2363 | } |
| 2364 | 2364 | header("Location: " . DOL_URL_ROOT . '/modulebuilder/index.php?tab=permissions&module=' . $module); |
| 2365 | 2365 | exit; |
@@ -2465,7 +2465,7 @@ discard block |
||
| 2465 | 2465 | setEventMessages($langs->trans('PermissionUpdatedSuccesfuly'), null); |
| 2466 | 2466 | clearstatcache(true); |
| 2467 | 2467 | if (function_exists('opcache_invalidate')) { |
| 2468 | - opcache_reset(); // remove the include cache hell ! |
|
| 2468 | + opcache_reset(); // remove the include cache hell ! |
|
| 2469 | 2469 | } |
| 2470 | 2470 | header("Location: " . DOL_URL_ROOT . '/modulebuilder/index.php?tab=permissions&module=' . $module); |
| 2471 | 2471 | exit; |
@@ -2515,7 +2515,7 @@ discard block |
||
| 2515 | 2515 | |
| 2516 | 2516 | clearstatcache(true); |
| 2517 | 2517 | if (function_exists('opcache_invalidate')) { |
| 2518 | - opcache_reset(); // remove the include cache hell ! |
|
| 2518 | + opcache_reset(); // remove the include cache hell ! |
|
| 2519 | 2519 | } |
| 2520 | 2520 | |
| 2521 | 2521 | header("Location: " . DOL_URL_ROOT . '/modulebuilder/index.php?tab=permissions&module=' . $module); |
@@ -2685,7 +2685,7 @@ discard block |
||
| 2685 | 2685 | |
| 2686 | 2686 | clearstatcache(true); |
| 2687 | 2687 | if (function_exists('opcache_invalidate')) { |
| 2688 | - opcache_reset(); // remove the include cache hell ! |
|
| 2688 | + opcache_reset(); // remove the include cache hell ! |
|
| 2689 | 2689 | } |
| 2690 | 2690 | |
| 2691 | 2691 | setEventMessages($langs->trans('MenuDeletedSuccessfuly'), null); |
@@ -2742,7 +2742,7 @@ discard block |
||
| 2742 | 2742 | setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Url")), null, 'errors'); |
| 2743 | 2743 | } |
| 2744 | 2744 | if (!empty(GETPOST('target'))) { |
| 2745 | - $targets = array('_blank','_self','_parent','_top',''); |
|
| 2745 | + $targets = array('_blank', '_self', '_parent', '_top', ''); |
|
| 2746 | 2746 | if (!in_array(GETPOST('target'), $targets)) { |
| 2747 | 2747 | $error++; |
| 2748 | 2748 | setEventMessages($langs->trans("ErrorFieldValue", $langs->transnoentities("target")), null, 'errors'); |
@@ -2848,7 +2848,7 @@ discard block |
||
| 2848 | 2848 | |
| 2849 | 2849 | // Modify a menu entry |
| 2850 | 2850 | if ($dirins && $action == "update_menu" && GETPOSTINT('menukey') && GETPOST('tabobj')) { |
| 2851 | - $objectname = GETPOST('tabobj'); |
|
| 2851 | + $objectname = GETPOST('tabobj'); |
|
| 2852 | 2852 | $dirins = $listofmodules[strtolower($module)]['moduledescriptorrootpath']; |
| 2853 | 2853 | $destdir = $dirins . '/' . strtolower($module); |
| 2854 | 2854 | $objects = dolGetListOfObjectClasses($destdir); |
@@ -4118,16 +4118,16 @@ discard block |
||
| 4118 | 4118 | // Define path for sql file |
| 4119 | 4119 | $pathtosql = strtolower($module) . '/sql/llx_' . strtolower($module) . '_' . strtolower($tabobj) . '-' . strtolower($module) . '.sql'; |
| 4120 | 4120 | $result = dol_buildpath($pathtosql); |
| 4121 | - if (! dol_is_file($result)) { |
|
| 4121 | + if (!dol_is_file($result)) { |
|
| 4122 | 4122 | $pathtosql = strtolower($module) . '/sql/llx_' . strtolower($module) . '_' . strtolower($tabobj) . '.sql'; |
| 4123 | 4123 | $result = dol_buildpath($pathtosql); |
| 4124 | - if (! dol_is_file($result)) { |
|
| 4124 | + if (!dol_is_file($result)) { |
|
| 4125 | 4125 | $pathtosql = 'install/mysql/tables/llx_' . strtolower($module) . '_' . strtolower($tabobj) . '-' . strtolower($module) . '.sql'; |
| 4126 | 4126 | $result = dol_buildpath($pathtosql); |
| 4127 | - if (! dol_is_file($result)) { |
|
| 4127 | + if (!dol_is_file($result)) { |
|
| 4128 | 4128 | $pathtosql = 'install/mysql/tables/llx_' . strtolower($module) . '-' . strtolower($module) . '.sql'; |
| 4129 | 4129 | $result = dol_buildpath($pathtosql); |
| 4130 | - if (! dol_is_file($result)) { |
|
| 4130 | + if (!dol_is_file($result)) { |
|
| 4131 | 4131 | $pathtosql = 'install/mysql/tables/llx_' . strtolower($module) . '.sql'; |
| 4132 | 4132 | $pathtosqlextra = 'install/mysql/tables/llx_' . strtolower($module) . '_extrafields.sql'; |
| 4133 | 4133 | $result = dol_buildpath($pathtosql); |
@@ -4146,7 +4146,7 @@ discard block |
||
| 4146 | 4146 | $pathtosqlroot = preg_replace('/\/llx_.*$/', '', $pathtosql); |
| 4147 | 4147 | |
| 4148 | 4148 | $pathtosqlkey = preg_replace('/\.sql$/', '.key.sql', $pathtosql); |
| 4149 | - $pathtosqlextrakey = preg_replace('/\.sql$/', '.key.sql', $pathtosqlextra); |
|
| 4149 | + $pathtosqlextrakey = preg_replace('/\.sql$/', '.key.sql', $pathtosqlextra); |
|
| 4150 | 4150 | |
| 4151 | 4151 | $pathtolib = strtolower($module) . '/lib/' . strtolower($module) . '.lib.php'; |
| 4152 | 4152 | $pathtoobjlib = strtolower($module) . '/lib/' . strtolower($module) . '_' . strtolower($tabobj) . '.lib.php'; |
@@ -5655,7 +5655,7 @@ discard block |
||
| 5655 | 5655 | if (in_array($perm[5], array('lire', 'read', 'creer', 'write', 'effacer', 'delete'))) { |
| 5656 | 5656 | print dol_escape_htmltag(ucfirst($perm[4])); |
| 5657 | 5657 | } else { |
| 5658 | - print ''; // No particular object |
|
| 5658 | + print ''; // No particular object |
|
| 5659 | 5659 | } |
| 5660 | 5660 | print '</td>'; |
| 5661 | 5661 | |
@@ -875,7 +875,7 @@ |
||
| 875 | 875 | $starthalfday = ($obj->halfday == -1 || $obj->halfday == 2) ? 'afternoon' : 'morning'; |
| 876 | 876 | $endhalfday = ($obj->halfday == 1 || $obj->halfday == 2) ? 'morning' : 'afternoon'; |
| 877 | 877 | |
| 878 | - $nbopenedday = num_open_day($db->jdate($obj->date_debut, 1), $db->jdate($obj->date_fin, 1), 0, 1, $obj->halfday); // user jdate(..., 1) because num_open_day need UTC dates |
|
| 878 | + $nbopenedday = num_open_day($db->jdate($obj->date_debut, 1), $db->jdate($obj->date_fin, 1), 0, 1, $obj->halfday); // user jdate(..., 1) because num_open_day need UTC dates |
|
| 879 | 879 | $totalduration += $nbopenedday; |
| 880 | 880 | |
| 881 | 881 | if ($mode == 'kanban') { |