Commit 40ddd619 authored by skummer's avatar skummer

ZP-226 #comment don't display number if there is only one folder per type #time 10m

git-svn-id: https://z-push.org/svn/z-push/trunk@1448 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 03a3705a
...@@ -418,8 +418,12 @@ class SyncCollections implements Iterator { ...@@ -418,8 +418,12 @@ class SyncCollections implements Iterator {
$checkClasses = "policies only"; $checkClasses = "policies only";
else if (array_sum($classes) > 4) { else if (array_sum($classes) > 4) {
$checkClasses = ""; $checkClasses = "";
foreach($classes as $class=>$count) foreach($classes as $class=>$count) {
$checkClasses .= sprintf("%s(%d) ", $class, $count); if ($count == 1)
$checkClasses .= sprintf("%s ", $class);
else
$checkClasses .= sprintf("%s(%d) ", $class, $count);
}
} }
else else
$checkClasses = implode("/", array_keys($classes)); $checkClasses = implode("/", array_keys($classes));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment