@@ -503,7 +503,7 @@ |
||
| 503 | 503 | // Turning on or off the ssl target certificate |
| 504 | 504 | if ($ssl_verifypeer < 0) { |
| 505 | 505 | global $dolibarr_main_prod; |
| 506 | - $ssl_verifypeer = ($dolibarr_main_prod ? true : false); |
|
| 506 | + $ssl_verifypeer = ($dolibarr_main_prod ? true : false); |
|
| 507 | 507 | } |
| 508 | 508 | if (!empty($conf->global->MAIN_CURL_DISABLE_VERIFYPEER)) { |
| 509 | 509 | $ssl_verifypeer = 0; |
@@ -954,7 +954,7 @@ |
||
| 954 | 954 | } |
| 955 | 955 | $result .= $linkend; |
| 956 | 956 | global $action; |
| 957 | - $hookmanager->initHooks(array($this->element . 'dao')); |
|
| 957 | + $hookmanager->initHooks(array($this->element.'dao')); |
|
| 958 | 958 | $parameters = array('id'=>$this->id, 'getnomurl' => &$result); |
| 959 | 959 | $reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks |
| 960 | 960 | if ($reshook > 0) { |
@@ -987,7 +987,7 @@ |
||
| 987 | 987 | $result .= $linkend; |
| 988 | 988 | |
| 989 | 989 | global $action; |
| 990 | - $hookmanager->initHooks(array($this->element . 'dao')); |
|
| 990 | + $hookmanager->initHooks(array($this->element.'dao')); |
|
| 991 | 991 | $parameters = array('id'=>$this->id, 'getnomurl' => &$result); |
| 992 | 992 | $reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks |
| 993 | 993 | if ($reshook > 0) { |
@@ -954,7 +954,7 @@ |
||
| 954 | 954 | } |
| 955 | 955 | $result .= $linkend; |
| 956 | 956 | global $action; |
| 957 | - $hookmanager->initHooks(array($this->element . 'dao')); |
|
| 957 | + $hookmanager->initHooks(array($this->element.'dao')); |
|
| 958 | 958 | $parameters = array('id'=>$this->id, 'getnomurl' => &$result); |
| 959 | 959 | $reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks |
| 960 | 960 | if ($reshook > 0) { |
@@ -987,7 +987,7 @@ |
||
| 987 | 987 | $result .= $linkend; |
| 988 | 988 | |
| 989 | 989 | global $action; |
| 990 | - $hookmanager->initHooks(array($this->element . 'dao')); |
|
| 990 | + $hookmanager->initHooks(array($this->element.'dao')); |
|
| 991 | 991 | $parameters = array('id'=>$this->id, 'getnomurl' => &$result); |
| 992 | 992 | $reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks |
| 993 | 993 | if ($reshook > 0) { |
@@ -38,9 +38,9 @@ |
||
| 38 | 38 | // Only works if you are not in safe_mode. / Ne fonctionne que si on est pas en safe_mode. |
| 39 | 39 | |
| 40 | 40 | $err = error_reporting(); |
| 41 | -error_reporting(0); // Disable all errors |
|
| 41 | +error_reporting(0); // Disable all errors |
|
| 42 | 42 | //error_reporting(E_ALL); |
| 43 | -@set_time_limit(1800); // Need 1800 on some very slow OS like Windows 7/64 |
|
| 43 | +@set_time_limit(1800); // Need 1800 on some very slow OS like Windows 7/64 |
|
| 44 | 44 | error_reporting($err); |
| 45 | 45 | |
| 46 | 46 | $action = GETPOST('action', 'aZ09') ?GETPOST('action', 'aZ09') : (empty($argv[1]) ? '' : $argv[1]); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | // Object card |
| 93 | 93 | // ------------------------------------------------------------ |
| 94 | - $linkback = '<a href="' . DOL_URL_ROOT . '/asset/list.php?restore_lastsearch_values=1' . (!empty($socid) ? '&socid=' . $socid : '') . '">' . $langs->trans("BackToList") . '</a>'; |
|
| 94 | + $linkback = '<a href="'.DOL_URL_ROOT.'/asset/list.php?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
|
| 95 | 95 | |
| 96 | 96 | $morehtmlref = '<div class="refidno">'; |
| 97 | 97 | $morehtmlref .= '</div>'; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | |
| 107 | 107 | $cssclass = "titlefield"; |
| 108 | - include DOL_DOCUMENT_ROOT . '/core/tpl/notes.tpl.php'; |
|
| 108 | + include DOL_DOCUMENT_ROOT.'/core/tpl/notes.tpl.php'; |
|
| 109 | 109 | |
| 110 | 110 | print '</div>'; |
| 111 | 111 | |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | // Object card |
| 93 | 93 | // ------------------------------------------------------------ |
| 94 | - $linkback = '<a href="' . DOL_URL_ROOT . '/asset/list.php?restore_lastsearch_values=1' . (!empty($socid) ? '&socid=' . $socid : '') . '">' . $langs->trans("BackToList") . '</a>'; |
|
| 94 | + $linkback = '<a href="'.DOL_URL_ROOT.'/asset/list.php?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
|
| 95 | 95 | |
| 96 | 96 | $morehtmlref = '<div class="refidno">'; |
| 97 | 97 | $morehtmlref .= '</div>'; |
@@ -37,10 +37,10 @@ discard block |
||
| 37 | 37 | $show_files = GETPOST('show_files', 'int'); // Show files area generated by bulk actions ? |
| 38 | 38 | $confirm = GETPOST('confirm', 'alpha'); // Result of a confirmation |
| 39 | 39 | $cancel = GETPOST('cancel', 'alpha'); // We click on a Cancel button |
| 40 | -$toselect = GETPOST('toselect', 'array'); // Array of ids of elements selected into a list |
|
| 40 | +$toselect = GETPOST('toselect', 'array'); // Array of ids of elements selected into a list |
|
| 41 | 41 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'assetmodellist'; // To manage different context of search |
| 42 | 42 | $backtopage = GETPOST('backtopage', 'alpha'); // Go back to a dedicated page |
| 43 | -$optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print') |
|
| 43 | +$optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print') |
|
| 44 | 44 | |
| 45 | 45 | $id = GETPOST('id', 'int'); |
| 46 | 46 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | // Default sort order (if not yet defined by previous GETPOST) |
| 72 | 72 | if (!$sortfield) { |
| 73 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 73 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 74 | 74 | $sortfield = "t.".key($object->fields); // Set here default search field. By default 1st field in definition. |
| 75 | 75 | } |
| 76 | 76 | if (!$sortorder) { |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | $sql .= " AND t.".$columnName." >= '".$db->idate($search[$key])."'"; |
| 255 | 255 | } |
| 256 | 256 | if (preg_match('/_dtend$/', $key)) { |
| 257 | - $sql .= " AND t." . $columnName . " <= '" . $db->idate($search[$key]) . "'"; |
|
| 257 | + $sql .= " AND t.".$columnName." <= '".$db->idate($search[$key])."'"; |
|
| 258 | 258 | } |
| 259 | 259 | } |
| 260 | 260 | } |