Undo: Gateways: Convert State to string to escape function.

This commit is contained in:
fusionate 2023-05-05 17:02:24 +00:00
parent f29a78a6af
commit 8614f617a2
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -318,14 +318,14 @@
//running
try {
$xml = new SimpleXMLElement($response);
$state = (array) $xml->state;
$state = $xml->state;
echo " <td class='hide-sm-dn'>".$text['label-status-running']."</td>\n";
if (permission_exists('gateway_edit')) {
echo " <td class='no-link center'>";
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 " </td>\n";
}
echo " <td>".escape($state[0])."</td>\n"; //REGED, NOREG, UNREGED
echo " <td>".escape($state)."</td>\n"; //REGED, NOREG, UNREGED
}
catch (Exception $e) {
//echo $e->getMessage();