mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Clean code with rector 2
This commit is contained in:
@@ -58,10 +58,10 @@ $pageprev = $page - 1;
|
||||
$pagenext = $page + 1;
|
||||
|
||||
if (getDolGlobalString('MAIN_DOC_SORT_FIELD')) {
|
||||
$sortfield = $conf->global->MAIN_DOC_SORT_FIELD;
|
||||
$sortfield = getDolGlobalString('MAIN_DOC_SORT_FIELD');
|
||||
}
|
||||
if (getDolGlobalString('MAIN_DOC_SORT_ORDER')) {
|
||||
$sortorder = $conf->global->MAIN_DOC_SORT_ORDER;
|
||||
$sortorder = getDolGlobalString('MAIN_DOC_SORT_ORDER');
|
||||
}
|
||||
|
||||
if (!$sortorder) {
|
||||
|
||||
Reference in New Issue
Block a user