Skip to content

Commit 66e29ce

Browse files
committed
fix bug with str_singular()
1 parent 2576e77 commit 66e29ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lfm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function currentLfmType()
7474
{
7575
$lfm_type = 'file';
7676

77-
$request_type = lcfirst(str_singular($this->input('type')));
77+
$request_type = lcfirst(str_singular($this->input('type') ?: ''));
7878
$available_types = array_keys($this->config->get('lfm.folder_categories'));
7979

8080
if (in_array($request_type, $available_types)) {

0 commit comments

Comments
 (0)