From 085f0dac3ed17063890107b7a18e60c5722e0794 Mon Sep 17 00:00:00 2001 From: Beshoy Girgis Date: Mon, 19 Jun 2023 20:06:34 -0500 Subject: [PATCH] Initialize token so it's not used before accessing. --- Blacklight/processing/tv/TVDB.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Blacklight/processing/tv/TVDB.php b/Blacklight/processing/tv/TVDB.php index 149c7448e8..c563aeb321 100755 --- a/Blacklight/processing/tv/TVDB.php +++ b/Blacklight/processing/tv/TVDB.php @@ -52,6 +52,7 @@ public function __construct() // Check if we can get the time for API status // If we can't then we set local to true + $this->token = ''; try { $this->token = $this->client->authentication()->login(config('tvdb.api_key'), config('tvdb.user_pin')); } catch (UnauthorizedException $error) {