Fixed netrwork filter in Order
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
<?php
|
||||
//var_dump($mynetworks);
|
||||
|
||||
$sorted_networks = [];
|
||||
if(is_array($mynetworks) && count($mynetworks)) {
|
||||
foreach($mynetworks as $id => $net) {
|
||||
$sorted_networks[$net->name] = $id;
|
||||
foreach($mynetworks as $net) {
|
||||
$sorted_networks[$net->name] = $net->id;
|
||||
}
|
||||
}
|
||||
ksort($sorted_networks);
|
||||
|
||||
//var_dump($mynetworks);
|
||||
//var_dump($sorted_networks);exit;
|
||||
|
||||
?>
|
||||
<?php include(realpath(dirname(__FILE__)."/../")."/header.php"); ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user