Skip to content

Commit

Permalink
Fix undefined array key "install_path" (#34)
Browse files Browse the repository at this point in the history
Co-authored-by: yunbaoi <52o@qq52o.me>
Co-authored-by: yun <52o@qq52o.me>
Co-committed-by: yun <52o@qq52o.me>
  • Loading branch information
yunbaoi authored and sy-records committed Oct 19, 2021
1 parent e6b621e commit 175f179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Server/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function (Server $server, $msg) {
if ($package['root']['name'] === '__root__' && isset($list['__root__'])) {
$key_name = "__root__{$key}";
}
$package['root']['install_path'] = realpath($package['root']['install_path']);
$package['root']['install_path'] = !empty($package['root']['install_path']) ? realpath($package['root']['install_path']) : '';
$list[$key_name] = $package;
}
break;
Expand Down

0 comments on commit 175f179

Please sign in to comment.