diff --git a/Resources/views/MediaAdmin/browser.html.twig b/Resources/views/MediaAdmin/browser.html.twig index d791407..a8be654 100644 --- a/Resources/views/MediaAdmin/browser.html.twig +++ b/Resources/views/MediaAdmin/browser.html.twig @@ -44,14 +44,14 @@ {% if providers|length > 1 %}
  • {{ "label.select_provider"|trans({}, 'SonataMediaBundle') }}
  • - {% if not persistent_parameters.provider %} + {% if (persistent_parameters.provider is not defined) or (not persistent_parameters.provider) %}
  • {{ "link.all_providers"|trans({}, 'SonataMediaBundle') }}
  • {% else %}
  • {{ "link.all_providers"|trans({}, 'SonataMediaBundle') }}
  • {% endif %} {% for provider_name in providers %} - {% if persistent_parameters.provider == provider_name%} + {% if (persistent_parameters.provider is defined) and (persistent_parameters.provider == provider_name) %}
  • {{ provider_name|trans({}, 'SonataMediaBundle') }}
  • {% else %}
  • {{ provider_name|trans({}, 'SonataMediaBundle') }}