From 570b6d69b5f6c31989f378b0c5e8fbdbfea7882e Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 8 May 2008 05:06:51 +0000 Subject: [PATCH] Updated log view -Show "none" instead of "0", if no logfile is selected. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10831 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/addons/goto/class_goto_log_view.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 f6c9055aa..ab9228013 100644 --- a/gosa-plugins/goto/addons/goto/class_goto_log_view.inc +++ b/gosa-plugins/goto/addons/goto/class_goto_log_view.inc @@ -81,7 +81,10 @@ class goto_log_view extends plugin $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",$file.", ".$date); + $smarty->assign("selected_log",_("none")); + if(!empty($file)){ + $smarty->assign("selected_log",$file.", ".$date); + } $divlist = new divlist("log_view"); -- 2.30.2