aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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.