From 8614f617a2a2798bfd6b3178dbb51ca4392f8274 Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 5 May 2023 17:02:24 +0000 Subject: [PATCH] Undo: Gateways: Convert State to string to escape function. --- app/gateways/gateways.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/gateways/gateways.php b/app/gateways/gateways.php index b7fcdc2cb8..5024331df6 100644 --- a/app/gateways/gateways.php +++ b/app/gateways/gateways.php @@ -318,14 +318,14 @@ //running try { $xml = new SimpleXMLElement($response); - $state = (array) $xml->state; + $state = $xml->state; echo " ".$text['label-status-running']."\n"; if (permission_exists('gateway_edit')) { echo " "; echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-action-stop'],'title'=>$text['button-stop'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('stop'); list_form_submit('form_list')"]); echo " \n"; } - echo " ".escape($state[0])."\n"; //REGED, NOREG, UNREGED + echo " ".escape($state)."\n"; //REGED, NOREG, UNREGED } catch (Exception $e) { //echo $e->getMessage();