Commit 7d55aa96 authored by Keven's avatar Keven
Browse files

Fixed warnings

parent 5ae27561
......@@ -48,9 +48,11 @@ class SendFile extends FileCommand
// Guess the slug of the folder
if (!is_null($folder)) {
if ($folder instanceof FolderInterface) {
$slug = end(split('/', $folder->getHref()));
$parts = explode('/', $folder->getHref());
$slug = end($parts);
} elseif (false !== strpos($folder, '/')) {
$slug = end(split('/', $folder));
$parts = explode('/', $folder);
$slug = end($parts);
} else {
$slug = $folder;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment