From: hickert Date: Fri, 25 Nov 2005 07:48:36 +0000 (+0000) Subject: Fixed mailqueue style if list is empty X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fe28920955d4062e35f22e8f42b4d8510610e68f;p=gosa.git Fixed mailqueue style if list is empty git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2057 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/mailqueue/class_mailqueue.inc b/plugins/addons/mailqueue/class_mailqueue.inc index e80a12f6e..bc01e499d 100644 --- a/plugins/addons/mailqueue/class_mailqueue.inc +++ b/plugins/addons/mailqueue/class_mailqueue.inc @@ -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']); diff --git a/plugins/addons/mailqueue/contents.tpl b/plugins/addons/mailqueue/contents.tpl index ff855eb70..bcf70bb59 100644 --- a/plugins/addons/mailqueue/contents.tpl +++ b/plugins/addons/mailqueue/contents.tpl @@ -120,9 +120,7 @@ {$range_selector} -

-   -

+

 

{/if}