Skip to content

Commit

Permalink
Update document.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 14, 2019
1 parent 0a9cc96 commit 176436e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/comm/propal/document.php
Expand Up @@ -61,8 +61,8 @@
$pageprev = $page - 1;
$pagenext = $page + 1;

if (isset($conf->global->MAIN_DOC_SORT_FIELD)){$sortfield=$conf->global->MAIN_DOC_SORT_FIELD;}
if (isset($conf->global->MAIN_DOC_SORT_ORDER)){$sortorder=$conf->global->MAIN_DOC_SORT_ORDER;}
if (! empty($conf->global->MAIN_DOC_SORT_FIELD)) { $sortfield=$conf->global->MAIN_DOC_SORT_FIELD; }
if (! empty($conf->global->MAIN_DOC_SORT_ORDER)) { $sortorder=$conf->global->MAIN_DOC_SORT_ORDER; }

if (! $sortorder) $sortorder="ASC";
if (! $sortfield) $sortfield="name";
Expand Down

0 comments on commit 176436e

Please sign in to comment.