diff --git a/src/Telescope.php b/src/Telescope.php index 58ae3e6cb..0e1f57537 100644 --- a/src/Telescope.php +++ b/src/Telescope.php @@ -133,10 +133,10 @@ public static function isEnabled() } $telescope_enabled = true; if (! config('telescope.enabled')) { - return false; + $telescope_enabled = false; } - if (config('telescope.sample_rate') < rand(0, 100)) { - return false; + else if (config('telescope.sample_rate') < rand(0, 100)) { + return $telescope_enabled = false; } Context::add('telescope_enabled', $telescope_enabled);