Use array_get to retrieve plot from plot_split array

This commit is contained in:
DariusIII
2018-02-21 09:38:50 +01:00
parent c372660bb6
commit c9719eed8a
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -899,7 +899,7 @@ class Movie
$ret = [
'title' => $result->title(),
'tagline' => $result->tagline(),
'plot' => $result->plot_split()[0]['plot'],
'plot' => array_get($result->plot_split(), '0.plot'),
'rating' => $result->rating(),
'year' => $result->year(),
'cover' => $result->photo(),
+2
View File
@@ -1,3 +1,5 @@
2018-02-21 DariusIII
* Chg: Use array_get to retrieve plot from plot_split array
2018-02-20 DariusIII
* Chg: Simplify localIMDBSearch function
* FIx: Remove references to groups from PostpProcess and Backfill (fixes issue #398)
Generated
+6 -5
View File
@@ -4666,15 +4666,16 @@
"source": {
"type": "git",
"url": "https://github.com/Roave/SecurityAdvisories.git",
"reference": "b5def2d9e0121c82083f552a90f7b499531a20fb"
"reference": "4f2e7d0db47e93468d84401fbe1c755c83f2d28b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/b5def2d9e0121c82083f552a90f7b499531a20fb",
"reference": "b5def2d9e0121c82083f552a90f7b499531a20fb",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/4f2e7d0db47e93468d84401fbe1c755c83f2d28b",
"reference": "4f2e7d0db47e93468d84401fbe1c755c83f2d28b",
"shasum": ""
},
"conflict": {
"3f/pygmentize": "<1.2",
"adodb/adodb-php": "<5.20.6",
"amphp/artax": "<1.0.6|>=2,<2.0.6",
"aws/aws-sdk-php": ">=3,<3.2.1",
@@ -4758,7 +4759,7 @@
"symfony/web-profiler-bundle": ">=2,<2.3.19|>=2.4,<2.4.9|>=2.5,<2.5.4",
"symfony/yaml": ">=2,<2.0.22|>=2.1,<2.1.7",
"thelia/backoffice-default-template": ">=2.1,<2.1.2",
"thelia/thelia": ">=2.1,<2.1.2|>=2.1.0-beta1,<2.1.3",
"thelia/thelia": ">=2.1.0-beta1,<2.1.3|>=2.1,<2.1.2",
"twig/twig": "<1.20",
"typo3/cms": ">=6.2,<6.2.30|>=7,<7.6.22|>=8,<8.7.5",
"typo3/flow": ">=1,<1.0.4|>=1.1,<1.1.1|>=2,<2.0.1|>=2.3,<2.3.16|>=3,<3.0.10|>=3.1,<3.1.7|>=3.2,<3.2.7|>=3.3,<3.3.5",
@@ -4807,7 +4808,7 @@
}
],
"description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it",
"time": "2018-02-20T15:56:25+00:00"
"time": "2018-02-21T07:05:29+00:00"
},
{
"name": "rtheunissen/guzzle-log-middleware",