Skip to content

Commit

Permalink
12.04 compatability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Mar 15, 2017
1 parent 33d82a6 commit 71116bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.php
Expand Up @@ -1814,7 +1814,7 @@ protected function convertTypes($result,&$values,&$fields) {
$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);
Expand Down

0 comments on commit 71116bc

Please sign in to comment.