Improved MAC address formatting
This commit is contained in:
3
node.php
3
node.php
@@ -231,7 +231,7 @@ $sth = $dbh->prepare($sql);
|
||||
$sth->execute([$id]);
|
||||
|
||||
$node = $sth->fetch(PDO::FETCH_OBJ);
|
||||
$node->mac = write_mac($node->mac);
|
||||
$node->mac = write_mac($node->mac, $_SESSION['suser_mac']);
|
||||
$smarty->assign("node", $node);
|
||||
|
||||
// nat
|
||||
@@ -281,6 +281,7 @@ $sql = "SELECT node_id AS id, node_ip AS ip, node_mac AS mac,
|
||||
$sth = $dbh->prepare($sql);
|
||||
$sth->execute([$id]);
|
||||
$node = $sth->fetch(PDO::FETCH_OBJ);
|
||||
$node->mac = write_mac($node->mac, $_SESSION['suser_mac']);
|
||||
$node->flags = explode(',', $node->flags);
|
||||
$smarty->assign("node", $node);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user