Code

Fixed proxy account (squid). Selection of worktime filtering wasn't working.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Jul 2008 06:57:04 +0000 (06:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Jul 2008 06:57:04 +0000 (06:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11585 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc

index 181b5d4ae40b8793fda64e96af2e6382d93d456d..e495ce35b09cf75568e04a19adc1c49f64de36f7 100644 (file)
@@ -77,9 +77,9 @@ class proxyAccount extends plugin
     }
 
     /* Assign working time */
-    $smarty->assign("starthour" ,($this->gosaProxyWorkingStart / 60));
+    $smarty->assign("starthour" ,floor($this->gosaProxyWorkingStart / 60));
     $smarty->assign("startminute", ($this->gosaProxyWorkingStart % 60));
-    $smarty->assign("stophour", ($this->gosaProxyWorkingStop / 60));
+    $smarty->assign("stophour", floor($this->gosaProxyWorkingStop / 60));
     $smarty->assign("stopminute", ($this->gosaProxyWorkingStop % 60));
     $hours= array();
     for($i=0; $i<24; $i++){