From fe28920955d4062e35f22e8f42b4d8510610e68f Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Nov 2005 07:48:36 +0000 Subject: [PATCH] Fixed mailqueue style if list is empty git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2057 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/mailqueue/class_mailqueue.inc | 4 ++++ plugins/addons/mailqueue/contents.tpl | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) 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} -- 2.30.2