diff --git a/code/app/services/VideoService.php b/code/app/services/VideoService.php index 479a55a..caf36cc 100644 --- a/code/app/services/VideoService.php +++ b/code/app/services/VideoService.php @@ -55,7 +55,7 @@ class VideoService 'strParentCategory' => !empty($strParentCategory) ? $strParentCategory : '', ]); - $strUrl = preg_replace('#/{2,}#', '/', $strUrl); + $strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl); return (string)$strUrl; } @@ -125,7 +125,7 @@ class VideoService 'intPage' => $intPage ?? 1, ]); - $strUrl = preg_replace('#/{2,}#', '/', $strUrl); + $strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl); return (string)$strUrl; } @@ -149,7 +149,7 @@ class VideoService 'intPage' => $intPage ?? 1, ]); - $strUrl = preg_replace('#/{2,}#', '/', $strUrl); + $strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl); return (string)$strUrl; }