mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
parent
adb4e0d720
commit
ebc87d7f20
3 changed files with 6 additions and 3 deletions
|
@ -39,7 +39,7 @@ class API extends PluginAbstract {
|
|||
|
||||
public function set($parameters) {
|
||||
if (empty($parameters['APIName'])) {
|
||||
$object = new ApiObject("Parameter APIName can not be empty");
|
||||
$object = new ApiObject("Parameter APIName can not be empty (set)");
|
||||
} else {
|
||||
if (!empty($parameters['pass'])) {
|
||||
$parameters['password'] = $parameters['pass'];
|
||||
|
@ -64,7 +64,7 @@ class API extends PluginAbstract {
|
|||
|
||||
public function get($parameters) {
|
||||
if (empty($parameters['APIName'])) {
|
||||
$object = new ApiObject("Parameter APIName can not be empty");
|
||||
$object = new ApiObject("Parameter APIName can not be empty (get)");
|
||||
} else {
|
||||
if (!empty($parameters['pass'])) {
|
||||
$parameters['password'] = $parameters['pass'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue