Fix a bug in simplified urls for VideoHelper 3, a=chris

Chris Pollett [2022-09-05 07:Sep:th]
Fix a bug in simplified urls for VideoHelper 3, a=chris
Filename
src/views/helpers/VideosHelper.php
diff --git a/src/views/helpers/VideosHelper.php b/src/views/helpers/VideosHelper.php
index 131350725..eea55d77a 100644
--- a/src/views/helpers/VideosHelper.php
+++ b/src/views/helpers/VideosHelper.php
@@ -81,7 +81,7 @@ class VideosHelper extends Helper implements CrawlConstants
             $host_parts = explode(".", $host);
             $company = $host;
             foreach ($host_parts as $host_part) {
-                if (!in_array(substr($host_part, 0 3), ["www", "htt"]) &&
+                if (!in_array(substr($host_part, 0, 3), ["www", "htt"]) &&
                     strlen($host_part) > 2) {
                     $company = $host_part;
                     break;
ViewGit