Cast Category constants to string in Blacklight/http/API.php to prevent strpos errors

This commit is contained in:
DariusIII
2019-02-28 13:17:07 +01:00
parent 4c864a5d68
commit e6e4e5e308
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ class API extends Capabilities
if (request()->has('cat')) {
$categoryIDs = urldecode(request()->input('cat'));
// Append Web-DL category ID if HD present for SickBeard / Sonarr compatibility.
if (strpos($categoryIDs, Category::TV_HD) !== false &&
strpos($categoryIDs, Category::TV_WEBDL) === false) {
if (strpos($categoryIDs, (string) Category::TV_HD) !== false &&
strpos($categoryIDs, (string) Category::TV_WEBDL) === false) {
$categoryIDs .= (','.Category::TV_WEBDL);
}
$categoryID = explode(',', $categoryIDs);
+1
View File
@@ -1,4 +1,5 @@
2019-02-28 DariusIII
* Fix: Cast Category constants to string in Blacklight/http/API.php to prevent strpos errors
* Chg: Update laravel/framework to 5.8.2, use forks of packages used untill they add support for laravel 5.8
* Chg: Update spatie/laravel-directory-cleanup (1.2.3 => 1.2.4)
* Chg: Update voku/simple_html_dom (4.2.1 => 4.3.1)