Navigation Menu

Skip to content
This repository has been archived by the owner on Oct 13, 2019. It is now read-only.

Commit

Permalink
fix/update-added-safety
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoyvo committed Apr 22, 2015
1 parent 38b5011 commit 10be310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update.php
Expand Up @@ -31,7 +31,7 @@
$osType = 'windows'; $osType = 'windows';
} else if (stripos($osInfo, 'linux') !== false) { } else if (stripos($osInfo, 'linux') !== false) {
$osType = 'linux'; $osType = 'linux';
if (function_exists('posix_getuid')) { if (function_exists('posix_geteuid') && function_exists('posix_getpwuid')) {
$phpUserInfo = posix_getpwuid(posix_geteuid()); $phpUserInfo = posix_getpwuid(posix_geteuid());
$phpUser = $phpUserInfo['name']; $phpUser = $phpUserInfo['name'];
} else { } else {
Expand Down

0 comments on commit 10be310

Please sign in to comment.