From 2a47dd30eead4e2ebfa2f0d5d58161923ae5e743 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 11 Apr 2020 20:27:05 +0200 Subject: [PATCH] Show message when too many files for browsing --- plugins/dynamix/include/Browse.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix/include/Browse.php b/plugins/dynamix/include/Browse.php index c2625ee04..39549b761 100644 --- a/plugins/dynamix/include/Browse.php +++ b/plugins/dynamix/include/Browse.php @@ -82,7 +82,7 @@ foreach ($file as $row) { array_multisort(array_column($list,'type'),$list); echo ""; -$total=0; +$total=0; $first = true; foreach ($list as $row) { if ($row['type']=='directory') { echo ""; @@ -93,7 +93,7 @@ foreach ($list as $row) { echo "{$row['disk']}"; echo ""; } else { - if ($files==0 && $dirs>0) echo ""; + if ($first && $dirs>0) echo ""; $tag = strpos($row['disk'],',')===false ? '' : 'warning'; echo ""; echo "
"; @@ -103,6 +103,7 @@ foreach ($list as $row) { echo "{$row['disk']}"; echo ""; $total+=$row['size']; + $first = false; } } echo "";