Code

Fixed mailqueue style if list is empty
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Nov 2005 07:48:36 +0000 (07:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Nov 2005 07:48:36 +0000 (07:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2057 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/mailqueue/class_mailqueue.inc
plugins/addons/mailqueue/contents.tpl

index e80a12f6e457ef5c7b88b47fde338651914c2adc..bc01e499d47fccc9181de2c48e678c075a742d76 100644 (file)
@@ -214,6 +214,10 @@ class mailqueue extends plugin
 
         /* */
         $entries = $mailQueueParser->GetAll();
+  
+        if(count($entries) ==0 ){
+          $smarty->assign("all_ok",false);
+        }
  
         $smarty->assign("entries"       , array_slice($entries,$this->Page,$this->range));
         $smarty->assign("plug"          , "?plug=".$_GET['plug']);
index ff855eb70b1fd76c88dec11970f4a8d1a55efe9a..bcf70bb5964979df548b14d44b1bf6193af49f31 100644 (file)
    <td>{$range_selector}</td>
   </tr>
  </table>
-<p class="plugbottom">
- &nbsp;
-</p>
+<p class="plugbottom">&nbsp;</p>
 
 {/if}