Skip to content

Commit

Permalink
Fix error in testing variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Jan 30, 2018
1 parent 61a8f5a commit 8e47222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code_igniter/application/helpers/output_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function output()
unset($CI->response->meta->data_order);
$CI->response->meta->data_order = array();

if (!empty($CI->response->data)) {
if (!empty($CI->response->data[0]->attributes)) {
foreach ($CI->response->data[0]->attributes as $key => $value) {
$CI->response->meta->data_order[] = $key;
}
Expand Down

0 comments on commit 8e47222

Please sign in to comment.