Skip to content

Commit

Permalink
Update Handler.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirmuxsin authored Dec 30, 2023
1 parent 84e78a6 commit d15d457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function get(): array
private static function filterUpdate (Request $update)
{

if (IpUtils::checkIp($update->ip(), config('laragram.trusted_ips'))) {
if (isset(config('laragram.trusted_ips')) and IpUtils::checkIp($update->ip(), config('laragram.trusted_ips'))) {
return $update->all();
}

Expand Down

0 comments on commit d15d457

Please sign in to comment.