diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index b44c038ae4..137e716534 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -11309,6 +11309,7 @@ function api_get_cluster_status($id_cluster, $trash1, $trash2, $returnType) { if ($value === false) { returnError('id_not_found', $returnType); + return; } $data = array('type' => 'string', 'data' => $value); @@ -11326,6 +11327,7 @@ function api_get_cluster_id_by_name($cluster_name, $trash1, $trash2, $returnType $value = cluster_get_id_by_name($cluster_name); if(($value === false) || ($value === null)){ returnError('id_not_found', $returnType); + return; } $cluster_group = clusters_get_group($value);