mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Updated comment
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
4860440306
commit
562546a853
|
@ -115,7 +115,7 @@ class SettingsController extends Controller
|
||||||
|
|
||||||
if (function_exists('posix_getpwuid')) { // Probably Linux
|
if (function_exists('posix_getpwuid')) { // Probably Linux
|
||||||
$owner = posix_getpwuid(fileowner($_SERVER['SCRIPT_FILENAME']));
|
$owner = posix_getpwuid(fileowner($_SERVER['SCRIPT_FILENAME']));
|
||||||
// This *shouldn't* be boolean, but we've seen this in come chrooted environments
|
// This *should* be an array, but we've seen this return a bool in some chrooted environments
|
||||||
if (is_array($owner)) {
|
if (is_array($owner)) {
|
||||||
$start_settings['owner'] = $owner['name'];
|
$start_settings['owner'] = $owner['name'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue