mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
parent
783da668e2
commit
9d0032d043
1 changed files with 4 additions and 4 deletions
|
@ -272,10 +272,10 @@ class API extends PluginAbstract {
|
|||
$obj = $this->startResponseObject($parameters);
|
||||
$dataObj = $this->getDataObject();
|
||||
if ($dataObj->APISecret === @$_GET['APISecret']) {
|
||||
if(!empty($dataObj->users_id)){
|
||||
$user = new User($dataObj->users_id);
|
||||
}else if(!empty($dataObj->user)){
|
||||
$user = new User(0, $dataObj->user, false);
|
||||
if(!empty($_GET['users_id'])){
|
||||
$user = new User($_GET['users_id']);
|
||||
}else if(!empty($_GET['user'])){
|
||||
$user = new User(0, $_GET['user'], false);
|
||||
}else{
|
||||
return new ApiObject("User Not defined");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue