Fix moviesSearch $whereSql query

This commit is contained in:
DariusIII
2018-02-14 09:32:03 +01:00
parent d7556bfe4d
commit fe28528da9
3 changed files with 10 additions and 7 deletions
+2
View File
@@ -1,3 +1,5 @@
2018-02-14 DariusIII
* Fix: Fix moviesSearch $whereSql query
2018-02-13 DariusIII
* Chg: Rename search functions to be more descriptive (ie. searchByImdbId searches for movies even without imdbid, so renamed to moviesSearch)
* Chg: Use insertGetId again in addGroup function
Generated
+6 -5
View File
@@ -4579,12 +4579,12 @@
"source": {
"type": "git",
"url": "https://github.com/Roave/SecurityAdvisories.git",
"reference": "f70d3cc8728777f688ff9a50e5a0efb7b18e2e94"
"reference": "5ebdd35b291cf9be4a425022872cb3aaf03192df"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/f70d3cc8728777f688ff9a50e5a0efb7b18e2e94",
"reference": "f70d3cc8728777f688ff9a50e5a0efb7b18e2e94",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/5ebdd35b291cf9be4a425022872cb3aaf03192df",
"reference": "5ebdd35b291cf9be4a425022872cb3aaf03192df",
"shasum": ""
},
"conflict": {
@@ -4634,6 +4634,7 @@
"onelogin/php-saml": "<2.10.4",
"oro/crm": ">=1.7,<1.7.4",
"oro/platform": ">=1.7,<1.7.4",
"padraic/file_get_contents": "<1.1.2",
"phpmailer/phpmailer": ">=5,<5.2.24",
"phpunit/phpunit": ">=4.8.19,<4.8.28|>=5.0.10,<5.6.3",
"phpxmlrpc/extras": "<0.6.1",
@@ -4668,7 +4669,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.0-beta1,<2.1.3|>=2.1,<2.1.2",
"thelia/thelia": ">=2.1,<2.1.2|>=2.1.0-beta1,<2.1.3",
"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",
@@ -4717,7 +4718,7 @@
}
],
"description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it",
"time": "2018-02-13T07:41:18+00:00"
"time": "2018-02-13T10:17:11+00:00"
},
{
"name": "rtheunissen/guzzle-log-middleware",
+2 -2
View File
@@ -994,11 +994,11 @@ class Releases
public function moviesSearch($imDbId, $offset = 0, $limit = 100, $name = '', array $cat = [-1], $maxAge = -1, $minSize = 0): array
{
$whereSql = sprintf(
'%s
"%s
WHERE r.categories_id BETWEEN " . Category::MOVIE_ROOT . " AND " . Category::MOVIE_OTHER . "
AND r.nzbstatus = %d
AND r.passwordstatus %s
%s %s %s %s %s',
%s %s %s %s %s",
($name !== '' ? $this->releaseSearch->getFullTextJoinString() : ''),
NZB::NZB_ADDED,
$this->showPasswords,