Skip to content

Commit

Permalink
Evarisk#1003 [Documents] fix: psr12
Browse files Browse the repository at this point in the history
  • Loading branch information
theodaviddd committed Sep 10, 2024
1 parent bb6fc4e commit b285c8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/documents.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ function saturne_show_documents(string $modulepart, $modulesubdir, $filedir, str

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

$page = GETPOST('page', 'int') ?: 1;
$filePerPage = 20;
$page = GETPOST('page', 'int') ?: 1;
$filePerPage = 20;
$fileListLength = 0;
if (is_array($fileList) && !empty($fileList)) {
$fileListLength = count($fileList);
Expand Down Expand Up @@ -264,7 +264,6 @@ function saturne_show_documents(string $modulepart, $modulesubdir, $filedir, str
$genbutton = '';
}
$out .= $genbutton;
$querySeparator = (strpos($_SERVER['REQUEST_URI'], '?') === false) ? '?' : '&';

$out .= '<div class="pagination">';
if($page > 1) {
Expand Down Expand Up @@ -536,6 +535,7 @@ function get_document_title_search(string $type, string $name, string $morehtml
$out = '<td class="'. $morehtml .'">';
$out .= '<input class="saturne-search" id="search_' . strtolower($name) . '" type="'. $type .'" name="search_' . strtolower($name) . '" value="' . GETPOST('search_' . strtolower($name)) . '">';
$out .= '</td>';

return $out;
}

Expand Down

0 comments on commit b285c8a

Please sign in to comment.