浏览代码

verif sur l'existence d'une BO

François 6 年之前
父节点
当前提交
a048363b80
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/AppBundle/Resources/views/videotheque/voirfilm.html.twig

+ 2 - 0
src/AppBundle/Resources/views/videotheque/voirfilm.html.twig

@@ -73,9 +73,11 @@
                     </div>
                     </div>
                 </div>
                 </div>
                 <div class="col-5">
                 <div class="col-5">
+                    {% if film.mediaVideo.video is defined %}
                     <div style='height :200px ;width :300px'>
                     <div style='height :200px ;width :300px'>
                         {{ film.mediaVideo.video|raw }}
                         {{ film.mediaVideo.video|raw }}
                     </div>
                     </div>
+                    {% endif %}
                 </div>
                 </div>
             </div>
             </div>