ajout condition dans le cas ou la config n'est pas definie
authorYves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Mon, 14 May 2012 18:50:01 +0200
changeset 610 f8a6c09cdd54
parent 609 f5059226cc2f
child 611 e6ff16b69b56
ajout condition dans le cas ou la config n'est pas definie
web/client_pad.php
--- a/web/client_pad.php	Mon May 14 18:31:05 2012 +0200
+++ b/web/client_pad.php	Mon May 14 18:50:01 2012 +0200
@@ -477,10 +477,12 @@
                     </div>
                 </div>
             </div>
-            
+            <?php $pad_url = $translate->_('config__pad_url');?>
+            <?php if ($pad_url !== "config__pad_url"):?>
             <div id="pad">
-            <iframe src='<?php echo($translate->_('config__pad_url')); ?>' width='100%' height=400></iframe>
+            <iframe src='<?php echo($pad_url); ?>' width='100%' height=400></iframe>
             </div>
+            <?php endif;?>
             <div class="footer">
                 <hr />
          <?php