pass return values from callback

This commit is contained in:
Robin Appelman 2016-04-26 12:12:14 +02:00
commit 727fed5efb

View file

@ -357,9 +357,9 @@ class Share extends AbstractShare {
$code = (int)substr($line, 0, 4);
$subPath = substr($line, 5);
if ($path === '') {
$callback($code, $subPath);
return $callback($code, $subPath);
} else {
$callback($code, $path . '/' . $subPath);
return $callback($code, $path . '/' . $subPath);
}
});
}