Fix: array offset on false in getNextAvailablePort, array-to-string in render_node attributes, missing columns in sync_billing_services INSERT
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/5bf3f57e-9174-4768-ae8b-c3526a1daeca Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
735322b8bc
commit
d57e3d0152
3 changed files with 11 additions and 6 deletions
|
|
@ -173,9 +173,9 @@ function config_games_render_node(SimpleXMLElement $node, array $ancestors, arra
|
|||
}
|
||||
|
||||
$attributes = $node->attributes();
|
||||
if ($attributes && count((array)$attributes) > 0) {
|
||||
if ($attributes && count($attributes) > 0) {
|
||||
$html .= "<div class='xml-node__attributes'><strong>Attributes</strong>";
|
||||
foreach ((array)$attributes as $attrName => $attrValue) {
|
||||
foreach ($attributes as $attrName => $attrValue) {
|
||||
$attrSafe = htmlspecialchars($attrName, ENT_QUOTES, 'UTF-8');
|
||||
$valSafe = gsp_value_to_editable_string($attrValue);
|
||||
$html .= "<div class='attr-row'><span>{$attrSafe}</span><input type='text' name=\"nodes[{$safeNodeKey}][attributes][{$attrSafe}]\" value=\"{$valSafe}\" placeholder='Leave blank to remove'></div>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue