protected function getContextErrors($flatten = true)
    {
        $errors = $this->getContext('errors');

        if (empty($errors)) {
            return array();
        }

        if ($flatten) {
            return gplcart_array_flatten($errors);
        }

        return $errors;
    }
protected function getContextErrors($flatten = true)
    {
        $errors = $this->getContext('errors');

        if (empty($errors)) {
            return array();
        }

        if ($flatten) {
            return gplcart_array_flatten($errors);
        }

        return $errors;
    }
protected function getContextErrors ( $ flatten = true ) { $ errors = $ this -> getContext ( 'errors' ) ; if ( empty ( $ errors ) ) { return array ( ) ; } if ( $ flatten ) { return gplcart_array_flatten ( $ errors ) ; } return $ errors ; }
Returns an array of context errors
@param bool $flatten
@return array
Returns an array of context errors