mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 03:43:08 +01:00
Code cleaning
This commit is contained in:
parent
7535530416
commit
514a2eb0fd
1 changed files with 4 additions and 4 deletions
|
@ -2182,7 +2182,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
||||||
* CLI helper to export the object info as JSON
|
* CLI helper to export the object info as JSON
|
||||||
*
|
*
|
||||||
* @param[in] $raw_values bool Export attributes raw values (instead of display ones)
|
* @param[in] $raw_values bool Export attributes raw values (instead of display ones)
|
||||||
* @param[in] $pretty bool Prettify JSON export
|
* @param[in] $pretty bool Prettify JSON export
|
||||||
*
|
*
|
||||||
* @retval void
|
* @retval void
|
||||||
**/
|
**/
|
||||||
|
@ -2234,11 +2234,11 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$data = json_encode($export, ($pretty?JSON_PRETTY_PRINT:0));
|
$output = json_encode($export, ($pretty?JSON_PRETTY_PRINT:0));
|
||||||
if ($data === false)
|
if ($output === false)
|
||||||
self :: log_error("Fail to encode data as JSON");
|
self :: log_error("Fail to encode data as JSON");
|
||||||
else
|
else
|
||||||
echo $data;
|
echo $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue