Code

Additional update for socket client
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jan 2008 08:52:28 +0000 (08:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jan 2008 08:52:28 +0000 (08:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8548 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_socketClient.inc

index 9fca690963fdc454c38f7ba58428ae295effa152..dee887e3ae820f5b1e319c1d5e9c69e3367ef4d2 100644 (file)
@@ -108,8 +108,11 @@ class Socket_Client
        }
 
        
-       private function _is_timeout($start,$stop = microtime())
+       private function _is_timeout($start,$stop = 0)
        {
+               if($stop == 0){
+                       $stop = microtime();
+               }
                $a = split("\ ",$start);
                $b = split("\ ",$stop);
                $secs = $b[1] - $a[1];