12.04 compatability fix

This commit is contained in:
Maurits van der Schee 2017-03-15 22:57:50 +01:00
commit 71116bc8e5

View file

@ -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);