mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
pass return values from callback
This commit is contained in:
parent
bbac31c5b0
commit
727fed5efb
1 changed files with 2 additions and 2 deletions
|
|
@ -357,9 +357,9 @@ class Share extends AbstractShare {
|
||||||
$code = (int)substr($line, 0, 4);
|
$code = (int)substr($line, 0, 4);
|
||||||
$subPath = substr($line, 5);
|
$subPath = substr($line, 5);
|
||||||
if ($path === '') {
|
if ($path === '') {
|
||||||
$callback($code, $subPath);
|
return $callback($code, $subPath);
|
||||||
} else {
|
} else {
|
||||||
$callback($code, $path . '/' . $subPath);
|
return $callback($code, $path . '/' . $subPath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue