view/activities/json.php
protected function _cleanupData(array $data = array())
    {
        $clean = array();

        foreach ($data as $key => $value)
        {
            if (!empty($value)) {
                $clean[$key] = $value;
            }
        }

        return $clean;
    }
protected function _cleanupData(array $data = array())
    {
        $clean = array();

        foreach ($data as $key => $value)
        {
            if (!empty($value)) {
                $clean[$key] = $value;
            }
        }

        return $clean;
    }
protected function _cleanupData ( array $ data = array ( ) ) { $ clean = array ( ) ; foreach ( $ data as $ key => $ value ) { if ( ! empty ( $ value ) ) { $ clean [ $ key ] = $ value ; } } return $ clean ; }
Removes entries with empty values.

@param array $data The data to cleanup.
@return array The cleaned up data.
Removes entries with empty values .