diff --git a/library/Director/Util.php b/library/Director/Util.php index 8b3d5c62..84b79463 100644 --- a/library/Director/Util.php +++ b/library/Director/Util.php @@ -18,6 +18,6 @@ class Util public static function binary2hex($hex) { - return end(unpack('H*', $hex)); + return current(unpack('H*', $hex)); } }