Skip to content

Commit b285c8a

Browse files
committed
#1003 [Documents] fix: psr12
1 parent bb6fc4e commit b285c8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/documents.lib.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ function saturne_show_documents(string $modulepart, $modulesubdir, $filedir, str
113113

114114
$fileList = dol_sort_array($fileList, $sortfield, $sortorder);
115115

116-
$page = GETPOST('page', 'int') ?: 1;
117-
$filePerPage = 20;
116+
$page = GETPOST('page', 'int') ?: 1;
117+
$filePerPage = 20;
118118
$fileListLength = 0;
119119
if (is_array($fileList) && !empty($fileList)) {
120120
$fileListLength = count($fileList);
@@ -264,7 +264,6 @@ function saturne_show_documents(string $modulepart, $modulesubdir, $filedir, str
264264
$genbutton = '';
265265
}
266266
$out .= $genbutton;
267-
$querySeparator = (strpos($_SERVER['REQUEST_URI'], '?') === false) ? '?' : '&';
268267

269268
$out .= '<div class="pagination">';
270269
if($page > 1) {
@@ -536,6 +535,7 @@ function get_document_title_search(string $type, string $name, string $morehtml
536535
$out = '<td class="'. $morehtml .'">';
537536
$out .= '<input class="saturne-search" id="search_' . strtolower($name) . '" type="'. $type .'" name="search_' . strtolower($name) . '" value="' . GETPOST('search_' . strtolower($name)) . '">';
538537
$out .= '</td>';
538+
539539
return $out;
540540
}
541541

0 commit comments

Comments
 (0)