Skip to content

Commit

Permalink
Fix test for JSON fields in output for credentials, discoveries and t…
Browse files Browse the repository at this point in the history
…asks.
  • Loading branch information
mark-unwin committed Dec 13, 2018
1 parent 5bdebd7 commit ed36ff8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code_igniter/application/helpers/output_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
*
* @author Mark Unwin <[email protected]>
*
* @param Object log_details An object containing details you wish to log
*
* @return NULL [logs the provided string to the log file]
*/
function output()
Expand Down Expand Up @@ -122,7 +120,7 @@ function output()
$array = array();
if (!empty($CI->response->data)) {
foreach ($CI->response->data as $item) {
if (!empty($item->attributes)) {
if (!empty($item->attributes) and !empty($item->attributes->{$column})) {
foreach ($item->attributes->{$column} as $key => $value) {
$array[] = $column.'.'.$key;
}
Expand Down

0 comments on commit ed36ff8

Please sign in to comment.