Piwik\API\Request::sanitizeRequest PHP Method

sanitizeRequest() private method

Make sure that the request contains no logical errors
private sanitizeRequest ( )
    private function sanitizeRequest()
    {
        // The label filter does not work with expanded=1 because the data table IDs have a different meaning
        // depending on whether the table has been loaded yet. expanded=1 causes all tables to be loaded, which
        // is why the label filter can't descend when a recursive label has been requested.
        // To fix this, we remove the expanded parameter if a label parameter is set.
        if (isset($this->request['label']) && !empty($this->request['label']) && isset($this->request['expanded']) && $this->request['expanded']) {
            unset($this->request['expanded']);
        }
    }