dernier bugfixes
authorx2000habouzit <x2000habouzit>
Fri, 20 Feb 2004 12:01:46 +0000 (12:01 +0000)
committerx2000habouzit <x2000habouzit>
Fri, 20 Feb 2004 12:01:46 +0000 (12:01 +0000)
templates/database-debug.tpl

index d678b57..0e68432 100644 (file)
@@ -5,7 +5,7 @@
   <tr class="impair">
     <td>
       <strong>QUERY:</strong><br />
-      {$query.query|regex_replace:"/(\n|^|$) */":"\n  "|replace:" ":"&nbsp"|nl2br}
+      {$query.query|regex_replace:"/(\n|^|$) */":"\n  "|replace:" ":"&nbsp;"|nl2br}
       <br />
     </td>
   </tr>
@@ -18,7 +18,8 @@
   </tr>
   {/if}
 </table>
-<table class="bicol" style="width: 75%; font-family: fixed; margin-left: 2px; margin-bottom: 3px; margin-top: -1px;">
+{if $query.explain}
+<table class="bicol" style="width: 75%; font-family: fixed; margin-left: 2px; margin-bottom: 3px;">
   <tr>
     {foreach key=key item=item from=$query.explain}
     <th>{$key}</th>
@@ -30,6 +31,7 @@
     {/foreach}
   </tr>
 </table>
+{/if}
 {/foreach}
 
 {/dynamic}