|
|
|
@ -1127,7 +1127,7 @@ if (isset($docs_and_folders) && is_array($docs_and_folders)) { |
|
|
|
|
) { |
|
|
|
|
// Create a sortable table with our data |
|
|
|
|
$sortable_data = array(); |
|
|
|
|
|
|
|
|
|
$countedPaths = array(); |
|
|
|
|
$count = 1; |
|
|
|
|
foreach ($docs_and_folders as $key => $document_data) { |
|
|
|
|
$row = array(); |
|
|
|
@ -1215,6 +1215,10 @@ if (isset($docs_and_folders) && is_array($docs_and_folders)) { |
|
|
|
|
$row[] = $document_name; |
|
|
|
|
|
|
|
|
|
$total_size = $total_size + $size; |
|
|
|
|
if (!isset($countedPaths[$document_data['path']])) { |
|
|
|
|
$total_size = $total_size + $size; |
|
|
|
|
$countedPaths[$document_data['path']] = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((isset($_GET['keyword']) && search_keyword($document_name, $_GET['keyword'])) || !isset($_GET['keyword']) || empty($_GET['keyword'])) { |
|
|
|
|
$sortable_data[] = $row; |
|
|
|
|