Code

Made it return something
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Jun 2007 10:26:33 +0000 (10:26 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Jun 2007 10:26:33 +0000 (10:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6745 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 1fa5e5dbabf10744033aa06294d811ad8cb5ebd2..bf608ae09714378c34aa8e93740479fbe80d1d0a 100644 (file)
@@ -2509,7 +2509,7 @@ function mac2company($mac)
       $line = fgets($handle, 4096);
 
       if (preg_match("/^$mac/", $line)){
-        echo "$line<br>";
+        $vendor= substr($line, 32);
       }
     }
     fclose($handle);