12.04 compatability fix
This commit is contained in:
parent
33d82a6a08
commit
71116bc8e5
1 changed files with 1 additions and 1 deletions
2
api.php
2
api.php
|
|
@ -1814,7 +1814,7 @@ class PHP_CRUD_API {
|
||||||
$values[$i] = $v + 0;
|
$values[$i] = $v + 0;
|
||||||
}
|
}
|
||||||
else if ($this->db->isBinaryType($fields[$i])) {
|
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])) {
|
else if ($this->db->isJsonType($fields[$i])) {
|
||||||
$values[$i] = $this->db->jsonDecode($v);
|
$values[$i] = $this->db->jsonDecode($v);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue