Fix for the Open in New Window in Patient/Client->Patients search gui, take 2.
[openemr.git] / phpmyadmin / libraries / transformations / application_octetstream__hex.inc.php
blob38c0e0e9d005a838007c9e3cbba2f2b7a1160e96
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 */
8 /**
11 function PMA_transformation_application_octetstream__hex($buffer, $options = array(), $meta = '') {
12 // possibly use a global transform and feed it with special options:
13 // include './libraries/transformations/global.inc.php';
14 if (!isset($options[0])) {
15 $options[0] = 2;
16 } else {
17 $options[0] = (int)$options[0];
20 if ($options[0] < 1) {
21 return bin2hex($buffer);
22 } else {
23 return chunk_split(bin2hex($buffer), $options[0], ' ');