1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
DanieL 2022-12-22 13:24:08 -03:00
parent 6acaf505ba
commit b7b50379a1

View file

@ -2097,9 +2097,12 @@ function checkMoment() {
}
function addGetParam(_url, _key, _value) {
if (typeof _url !== 'string' || typeof _value == 'undefined' || _value == 'undefined' || _value == '') {
if (typeof _url !== 'string') {
return false;
}
if (typeof _value == 'undefined' || _value == 'undefined' || _value == '') {
return _url;
}
var param = _key + '=' + escape(_value);
var sep = '&';
if (_url.indexOf('?') < 0) {