Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Aug 15, 2024
1 parent a8e19fe commit 8abdfc3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,11 @@ function pstree()
}
$y = function ($pid, $path = []) use (&$y, $pinfo) {
if (isset($pinfo[$pid])) {
list($ppid,) = $pinfo[$pid];
$ppid = $ppid;
if (isset($pinfo[$pid][0])) {
list($ppid,) = $pinfo[$pid];
} else {
$ppid = null;
}
$path[] = $pid;
return $y($ppid, $path);
} else {
Expand Down

0 comments on commit 8abdfc3

Please sign in to comment.