mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 08:50:22 -05:00
refactor: identical false to boolean not
This commit is contained in:
@@ -71,7 +71,7 @@ class AlbumController extends Controller
|
||||
$imdb = Str::startsWith($request->input('imdb'), 'tt') ? $request->input('imdb') : 'tt'.$request->input('imdb');
|
||||
$omdb = $this->client->find(['imdb' => $imdb]);
|
||||
|
||||
if ($omdb === null || $omdb === false) {
|
||||
if ($omdb === null || !$omdb) {
|
||||
return redirect()->route('albums.create')
|
||||
->withErrors('Bad IMDB Request!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user