]> git.mxchange.org Git - hub.git/commitdiff
Rewritten to out()
authorRoland Häder <roland@mxchange.org>
Sat, 14 Feb 2009 23:56:33 +0000 (23:56 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 14 Feb 2009 23:56:33 +0000 (23:56 +0000)
udp-client.php

index a8c21b9b0c9edc9689c8860d952fbab5449fcefd..d06663ee90454f53ed9bcaa689e603389b64729a 100644 (file)
@@ -10,6 +10,7 @@ global $hasher;
 
 function validate ($data) {
        global $hasher;
+
        switch ($hasher) {
                case "md5":
                        return md5($data);
@@ -24,7 +25,7 @@ function validate ($data) {
                        break;
 
                default:
-                       print("Unknown hasher: ${hasher}\n");
+                       out(__FUNCTION__, __LINE__, "Unknown hasher: ${hasher}");
                        break;
        }
 }