diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Provider/API.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/Provider/API.php b/plugins/Provider/API.php index e11eaf54cc..5344ea43f1 100644 --- a/plugins/Provider/API.php +++ b/plugins/Provider/API.php @@ -31,6 +31,13 @@ class API extends \Piwik\Plugin\API $dataTable = $archive->getDataTable(Archiver::PROVIDER_RECORD_NAME); $dataTable->filter('ColumnCallbackAddMetadata', array('label', 'url', __NAMESPACE__ . '\getHostnameUrl')); $dataTable->filter('GroupBy', array('label', __NAMESPACE__ . '\getPrettyProviderName')); + $dataTable->filter('AddSegmentValue', array(function ($label) { + if ($label === Piwik::translate('General_Unknown')) { + return ''; + } + + return $label; + })); $dataTable->queueFilter('ReplaceColumnNames'); $dataTable->queueFilter('ReplaceSummaryRowLabel'); return $dataTable; |