mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Minor fix in cde cluster api methods
This commit is contained in:
parent
fd53704dc0
commit
7a44f9dcdd
@ -11306,6 +11306,7 @@ function api_get_cluster_status($id_cluster, $trash1, $trash2, $returnType) {
|
|||||||
|
|
||||||
if ($value === false) {
|
if ($value === false) {
|
||||||
returnError('id_not_found', $returnType);
|
returnError('id_not_found', $returnType);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = array('type' => 'string', 'data' => $value);
|
$data = array('type' => 'string', 'data' => $value);
|
||||||
@ -11323,6 +11324,7 @@ function api_get_cluster_id_by_name($cluster_name, $trash1, $trash2, $returnType
|
|||||||
$value = cluster_get_id_by_name($cluster_name);
|
$value = cluster_get_id_by_name($cluster_name);
|
||||||
if(($value === false) || ($value === null)){
|
if(($value === false) || ($value === null)){
|
||||||
returnError('id_not_found', $returnType);
|
returnError('id_not_found', $returnType);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cluster_group = clusters_get_group($value);
|
$cluster_group = clusters_get_group($value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user