Fix null secure value in method.html.twig

This commit is contained in:
Loick Piera 2014-02-06 15:06:43 +01:00
parent e8a1e639ef
commit 414e87b58b

View File

@ -193,7 +193,7 @@
{% if enableSandbox %}
<div class="pane sandbox">
{% if app.request.secure != data.https %}
{% if app.request is not null and app.request.secure != data.https %}
Please reload the documentation using the scheme {% if data.https %}HTTPS{% else %}HTTP{% endif %} if you want to use the sandbox.
{% else %}
<form method="{{ data.method|upper }}" action="{% if data.host is defined %}{{ data.https ? 'https://' : 'http://' }}{{ data.host }}{% endif %}{{ data.uri }}">