From c9719eed8a9d378dd18082d86ccca29ef64f2db9 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 21 Feb 2018 09:38:50 +0100 Subject: [PATCH] Use array_get to retrieve plot from plot_split array --- Blacklight/Movie.php | 2 +- Changelog | 2 ++ composer.lock | 11 ++++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Blacklight/Movie.php b/Blacklight/Movie.php index 3505c7c6d..e3bb27cae 100755 --- a/Blacklight/Movie.php +++ b/Blacklight/Movie.php @@ -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(), diff --git a/Changelog b/Changelog index 21c7986ba..f1460714b 100755 --- a/Changelog +++ b/Changelog @@ -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) diff --git a/composer.lock b/composer.lock index 5f46b0297..837fc8c4a 100644 --- a/composer.lock +++ b/composer.lock @@ -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",