Skip to content

Commit

Permalink
Update LfmHelpers.php
Browse files Browse the repository at this point in the history
fix infector bug
  • Loading branch information
B-GH authored Feb 5, 2018
1 parent 8a7dec5 commit 32984ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traits/LfmHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public function translateToUtf8($input)
*/
public function isProcessingImages()
{
return lcfirst(str_singular(request('type'))) === 'image';
return lcfirst(str_singular(request('type') ? request('type') : '')) === 'image';
}

/**
Expand Down

0 comments on commit 32984ba

Please sign in to comment.