Fix getTrailer function query

This commit is contained in:
DariusIII
2017-09-28 23:16:20 +02:00
parent 3d48c27b9a
commit d0b50a3b5f
2 changed files with 5 additions and 5 deletions
Generated
+4 -4
View File
@@ -139,7 +139,7 @@
}
],
"description": "PHP Wrapper for Accessing the Steam Storefront API",
"time": "2017-08-27T15:14:06+00:00"
"time": "2017-08-27 15:14:06"
},
{
"name": "barracudanetworks/forkdaemon-php",
@@ -1473,7 +1473,7 @@
}
],
"description": "A PHP library that acts as a wrapper for the GiantBomb API.",
"time": "2017-05-29T12:05:57+00:00"
"time": "2017-05-29 12:05:57"
},
{
"name": "dnoegel/php-xdg-base-dir",
@@ -2633,7 +2633,7 @@
}
],
"description": "TVMaze-API-Wrapper",
"time": "2016-05-04T01:31:56+00:00"
"time": "2016-05-04 01:31:56"
},
{
"name": "kbjr/Git.php",
@@ -2659,7 +2659,7 @@
"source": "https://github.com/kbjr/Git.php/tree/master",
"issues": "https://github.com/kbjr/Git.php/issues"
},
"time": "2015-03-31T14:10:29+00:00"
"time": "2015-03-31 14:10:29"
},
{
"name": "kevinrob/guzzle-cache-middleware",
+1 -1
View File
@@ -456,7 +456,7 @@ class Movie
return false;
}
$trailer = MovieInfo::query()->where('imdbid', $imdbID)->where('trailer', '!=', '')->first('trailer');
$trailer = MovieInfo::query()->where('imdbid', $imdbID)->where('trailer', '!=', '')->first(['trailer']);
if ($trailer !== null) {
return $trailer['trailer'];
}