Skip to content
Snippets Groups Projects
Commit b0277954 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] PHP 8 fix

parent 4b9af34d
No related branches found
No related tags found
No related merge requests found
<?php
namespace SGalinski\SgVimeo\Service;
/***************************************************************
* Copyright notice
*
......@@ -26,6 +24,8 @@ namespace SGalinski\SgVimeo\Service;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
namespace SGalinski\SgVimeo\Service;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use TYPO3\CMS\Core\Registry;
......@@ -166,7 +166,7 @@ class VimeoService implements LoggerAwareInterface {
*/
protected function requestAccessToken(): void {
$token = $this->vimeoApiClient->clientCredentials(self::SCOPE);
if ($token['body']['access_token']) {
if (isset($token['body']['access_token'])) {
$this->vimeoApiClient->setToken($token['body']['access_token']);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment