From: hickert Date: Thu, 8 May 2008 05:06:51 +0000 (+0000) Subject: Updated log view X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=570b6d69b5f6c31989f378b0c5e8fbdbfea7882e;p=gosa.git 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 --- 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");