forked from Adleraci/adlerka.top
Fix
This commit is contained in:
parent
9a23a0802f
commit
e4c37a8c2d
@ -26,13 +26,13 @@ function getEndpoint($endpoint_name): string
|
||||
if (file_exists($endpoint_file)){
|
||||
$output_tmp = runEndpoint($endpoint_file);
|
||||
$output["Endpoint"] = $endpoint_name;
|
||||
switch (gettype($output)) {
|
||||
switch (gettype($output_tmp)) {
|
||||
case 'string':
|
||||
$output = $output_tmp;
|
||||
$output['Status'] = 'Success';
|
||||
break;
|
||||
case 'bool':
|
||||
$output['Status'] = $output ? 'Success' : 'Fail';
|
||||
$output['Status'] = $output_tmp ? 'Success' : 'Fail';
|
||||
break;
|
||||
default:
|
||||
$output['Status'] = 'Fail';
|
||||
|
Loading…
Reference in New Issue
Block a user