From: Roland Häder Date: Sat, 14 Feb 2009 23:56:33 +0000 (+0000) Subject: Rewritten to out() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30b27cfa7f5c339332ab922a17d42a8ba3ba6f7e;p=hub.git Rewritten to out() --- diff --git a/udp-client.php b/udp-client.php index a8c21b9b0..d06663ee9 100644 --- a/udp-client.php +++ b/udp-client.php @@ -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; } }