Code

Updated log view
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 May 2008 05:06:51 +0000 (05:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 May 2008 05:06:51 +0000 (05:06 +0000)
-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

index f6c9055aa0adc72ffc6d6e9266ff6a045c1313be..ab922801384965c70ad45dea06823aea11625c2c 100644 (file)
@@ -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");