aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-27 00:59:41 -0800
committerfriendica <info@friendica.com>2013-02-27 00:59:41 -0800
commit596ed80adf220920e619dab85bbc9a9aaaff5404 (patch)
treee66cb32e93aee013f6adf190b8aaeb207b021c27 /include
parent48d2f7e07dc4c13ff9e3105f4a9982d3efee1869 (diff)
downloadvolse-hubzilla-596ed80adf220920e619dab85bbc9a9aaaff5404.tar.gz
volse-hubzilla-596ed80adf220920e619dab85bbc9a9aaaff5404.tar.bz2
volse-hubzilla-596ed80adf220920e619dab85bbc9a9aaaff5404.zip
hex2bin is a built-in function in PHP 5.4
Diffstat (limited to 'include')
-rw-r--r--include/text.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 747061d3b..1cccc6090 100644
--- a/include/text.php
+++ b/include/text.php
@@ -223,6 +223,7 @@ function unxmlify($s) {
// convenience wrapper, reverse the operation "bin2hex"
+if(! function_exists('hex2bin')) {
function hex2bin($s) {
if(! (is_string($s) && strlen($s)))
return '';
@@ -232,7 +233,8 @@ function hex2bin($s) {
}
return(pack("H*",$s));
-}
+}}
+
// Automatic pagination.
// To use, get the count of total items.