diff --git a/htdocs/comm/action/list.php b/htdocs/comm/action/list.php
index 88adbab04d2..073f69b4f46 100644
--- a/htdocs/comm/action/list.php
+++ b/htdocs/comm/action/list.php
@@ -91,7 +91,7 @@ if ($search_status == '' && !GETPOSTISSET('search_status')) {
$search_status = ((!getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS') || $disabledefaultvalues) ? '' : $conf->global->AGENDA_DEFAULT_FILTER_STATUS);
}
if (empty($mode) && !GETPOSTISSET('mode')) {
- $mode = getDolGlobalString('AGENDA_DEFAULT_VIEW', 'list');
+ $mode = getDolGlobalString('AGENDA_DEFAULT_VIEW', 'show_list');
}
$filter = GETPOST("search_filter", 'alpha', 3) ? GETPOST("search_filter", 'alpha', 3) : GETPOST("filter", 'alpha', 3);
@@ -191,7 +191,7 @@ if ($user->socid && $socid) {
*/
if (GETPOST('cancel', 'alpha')) {
- $mode = 'list';
+ $mode = 'show_list';
$massaction = '';
}
@@ -685,7 +685,7 @@ $viewday = is_object($object) ? dol_print_date($object->datep, '%d') : '';
$viewmode = '
';
-$viewmode .= '
';
+$viewmode .= '';
//$viewmode .= '';
$viewmode .= img_picto($langs->trans("List"), 'object_calendarlist', 'class="imgforviewmode pictoactionview block"');
//$viewmode .= '';
diff --git a/htdocs/comm/action/pertype.php b/htdocs/comm/action/pertype.php
index ee1757e7484..5e967e2b47e 100644
--- a/htdocs/comm/action/pertype.php
+++ b/htdocs/comm/action/pertype.php
@@ -146,14 +146,14 @@ if ($end_h <= $begin_h) {
}
// working days
-$tmp = !getDolGlobalString('MAIN_DEFAULT_WORKING_DAYS') ? '1-5' : $conf->global->MAIN_DEFAULT_WORKING_DAYS;
+$tmp = getDolGlobalString('MAIN_DEFAULT_WORKING_DAYS', '1-5');
$tmp = str_replace(' ', '', $tmp); // FIX 7533
$tmparray = explode('-', $tmp);
$begin_d = 1;
$end_d = 53;
if ($status == '' && !GETPOSTISSET('search_status')) {
- $status = ((!getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS') || $disabledefaultvalues) ? '' : $conf->global->AGENDA_DEFAULT_FILTER_STATUS);
+ $status = ((!getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS') || $disabledefaultvalues) ? '' : getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS'));
}
if (empty($mode) && !GETPOSTISSET('mode')) {
$mode = getDolGlobalString('AGENDA_DEFAULT_VIEW', 'show_pertype');
@@ -313,7 +313,7 @@ if ($type) {
$param .= "&search_type=".urlencode($type);
}
if ($mode != 'show_pertype') {
- $param .= '&mode='.urlencode($mode);
+ $param .= '&mode='.urlencode((string) $mode);
}
if ($begin_h != '') {
$param .= '&begin_h='.urlencode($begin_h);
diff --git a/htdocs/comm/action/peruser.php b/htdocs/comm/action/peruser.php
index 261067884fa..09301d62b40 100644
--- a/htdocs/comm/action/peruser.php
+++ b/htdocs/comm/action/peruser.php
@@ -310,7 +310,7 @@ if ($type) {
$param .= "&search_type=".urlencode($type);
}
if ($mode != 'show_peruser') {
- $param .= '&mode='.urlencode($mode);
+ $param .= '&mode='.urlencode((string) $mode);
}
if ($begin_h != '') {
$param .= '&begin_h='.((int) $begin_h);