-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test for JSON fields in output for credentials, discoveries and t…
…asks.
- Loading branch information
1 parent
5bdebd7
commit ed36ff8
Showing
1 changed file
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|
@@ -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; | ||
} | ||
|