From 71116bc8e5dc7d4020ce1ebf0a9225ac8eb71ec6 Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Wed, 15 Mar 2017 22:57:50 +0100 Subject: [PATCH] 12.04 compatability fix --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index 58a6c95..3ba9348 100644 --- a/api.php +++ b/api.php @@ -1814,7 +1814,7 @@ class PHP_CRUD_API { $values[$i] = $v + 0; } else if ($this->db->isBinaryType($fields[$i])) { - $values[$i] = base64_encode(hex2bin($v)); + $values[$i] = base64_encode(pack("H*",$v)); } else if ($this->db->isJsonType($fields[$i])) { $values[$i] = $this->db->jsonDecode($v);