Skip to content

Commit 9bc4e05

Browse files
committed
geopath cache types chart fix
1 parent 36d3c25 commit 9bc4e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powerTrail/ajaxGetPowerTrailCaches.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function displayAllCachesOfPowerTrail(PowerTrail $powerTrail, $choseFinalCaches)
175175

176176
// count the rest of types
177177
$restOfTypes = 0;
178-
foreach (array_diff_key(GeoCache::CacheTypesArray(), $typesToShow) as $type) {
178+
foreach (array_diff(GeoCache::CacheTypesArray(), $typesToShow) as $type) {
179179
$restOfTypes += $cachetypes[$type];
180180
}
181181
if ($restOfTypes > 0) {

0 commit comments

Comments
 (0)