|
@@ -44,7 +44,7 @@ if (! isset($conf->global->AGENDA_MAX_EVENTS_DAY_VIEW)) $conf->global->AGENDA_MA
|
|
|
if (empty($conf->global->AGENDA_EXT_NB)) $conf->global->AGENDA_EXT_NB=5;
|
|
|
$MAXAGENDA=$conf->global->AGENDA_EXT_NB;
|
|
|
|
|
|
-$filter = GETPOST("filter",'',3);
|
|
|
+$filter = GETPOST("filter",'alpha',3);
|
|
|
$filtert = GETPOST("filtert","int",3);
|
|
|
$usergroup = GETPOST("usergroup","int",3);
|
|
|
$showbirthday = empty($conf->use_javascript_ajax)?GETPOST("showbirthday","int"):1;
|
|
@@ -59,7 +59,7 @@ $sortfield = GETPOST("sortfield",'alpha');
|
|
|
$sortorder = GETPOST("sortorder",'alpha');
|
|
|
$page = GETPOST("page","int");
|
|
|
if (empty($page) || $page == -1) { $page = 0; } // If $page is not defined, or '' or -1
|
|
|
-$limit = GETPOST('limit')?GETPOST('limit','int'):$conf->liste_limit;
|
|
|
+$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
|
|
|
$offset = $limit * $page;
|
|
|
if (! $sortorder) $sortorder="ASC";
|
|
|
if (! $sortfield) $sortfield="a.datec";
|