diff --git a/mytube.module b/mytube.module index c165bbe..825de31 100644 --- a/mytube.module +++ b/mytube.module @@ -727,8 +727,8 @@ function _mytube_fixembedded(&$embedded, $embed_url, $embed_domain, $width, $hei $ytparams = "$firstChar$ytparams"; $firstChar = '&'; } - if (firstChar == '?') - $embedded = _mytube_add_param($embed_url, "$firstChar" . "autoplay=1", $embedded); + if ($firstChar == '?') + $embedded = _mytube_add_param($embed_url, "autoplay=1", $embedded); else $embedded = str_replace($embed_url, "$embed_url$firstChar" . "autoplay=1", $embedded); $embedded = str_replace($embed_url, "$embed_url$ytparams", $embedded); @@ -747,8 +747,8 @@ function _mytube_fixembedded(&$embedded, $embed_url, $embed_domain, $width, $hei $ytparams = "$firstChar$ytparams"; $firstChar = '&'; } - if (firstChar == '?') - $embedded = _mytube_add_param($embed_url, "$firstChar" . "autoplay=1", $embedded); + if ($firstChar == '?') + $embedded = _mytube_add_param($embed_url, "autoplay=1", $embedded); else $embedded = str_replace($embed_url, "$embed_url$firstChar" . "autoplay=1", $embedded); $embedded = str_replace($embed_url, "$embed_url$ytparams", $embedded);