Commit 885ccfce authored by mikeytown2's avatar mikeytown2

Issue #2008440 by mikeytown2: Change object code for httpr_pr().

parent f41a20f9
......@@ -2430,19 +2430,12 @@ function httprl_print_empty(&$data, $level = 0) {
$level++;
if ($level < 5) {
if (is_object($data)) {
if (method_exists($data, '__set') || get_class($data) != 'stdClass') {
$new_object = new stdClass;
$new_object->__original_class_name__ = get_class($data);
foreach ($data as $key => $values) {
$new_object->{$key} = httprl_print_empty($values, $level);
}
$data = $new_object;
}
else {
foreach ($data as $key => $values) {
$data->{$key} = httprl_print_empty($values, $level);
}
$new_object = new stdClass;
$new_object->__original_class_name__ = get_class($data);
foreach ($data as $key => $values) {
$new_object->{$key} = httprl_print_empty($values, $level);
}
$data = $new_object;
}
elseif (is_array($data)) {
foreach ($data as &$values) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment