Skip to content

Commit 175f179

Browse files
yunbaoisy-records
authored andcommitted
Fix undefined array key "install_path" (#34)
Co-authored-by: yunbaoi <[email protected]> Co-authored-by: yun <[email protected]> Co-committed-by: yun <[email protected]>
1 parent e6b621e commit 175f179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Server/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ function (Server $server, $msg) {
392392
if ($package['root']['name'] === '__root__' && isset($list['__root__'])) {
393393
$key_name = "__root__{$key}";
394394
}
395-
$package['root']['install_path'] = realpath($package['root']['install_path']);
395+
$package['root']['install_path'] = !empty($package['root']['install_path']) ? realpath($package['root']['install_path']) : '';
396396
$list[$key_name] = $package;
397397
}
398398
break;

0 commit comments

Comments
 (0)