From 19ccd855d3f69fbc3fb5c1767e364c451ca9b779 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 17 Jul 2008 12:21:27 +0000 Subject: [PATCH] Display fix for hosts without any logfiles git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11705 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/addons/goto/class_goto_log_view.inc | 4 +++- gosa-plugins/goto/addons/goto/log_view.tpl | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/goto/addons/goto/class_goto_log_view.inc b/gosa-plugins/goto/addons/goto/class_goto_log_view.inc index 36bb15c59..4193a586c 100644 --- a/gosa-plugins/goto/addons/goto/class_goto_log_view.inc +++ b/gosa-plugins/goto/addons/goto/class_goto_log_view.inc @@ -79,7 +79,9 @@ class goto_log_view extends plugin $smarty->assign("log_file", $this->get_log($this->mac,$this->selected_date,$this->selected_file)); $smarty->assign("standalone",$this->standalone); - $date = date("d.m.Y H:i:s",$this->logs[$this->mac][$this->selected_date]['REAL_DATE']); + if (isset($this->logs[$this->mac])){ + $date = date("d.m.Y H:i:s",$this->logs[$this->mac][$this->selected_date]['REAL_DATE']); + } $file = $this->selected_file; $smarty->assign("selected_log",_("none")); if(!empty($file)){ diff --git a/gosa-plugins/goto/addons/goto/log_view.tpl b/gosa-plugins/goto/addons/goto/log_view.tpl index 24774c04e..5542cdf2a 100644 --- a/gosa-plugins/goto/addons/goto/log_view.tpl +++ b/gosa-plugins/goto/addons/goto/log_view.tpl @@ -1,7 +1,7 @@ +{if $logs_available}

{t}Available logs{/t}

-{if $logs_available}
{$divlist}

@@ -20,5 +20,5 @@
-{/if}
+{/if} -- 2.30.2