Browse Source

controller.php - remove useless condition

Émile Morel 10 years ago
parent
commit
9b7c2d2a01
1 changed files with 1 additions and 3 deletions
  1. 1 3
      sources/controller.php

+ 1 - 3
sources/controller.php

@@ -43,9 +43,7 @@ dispatch('/', function() {
   $wifi_ssid_list='';
   $ssids = getArray(moulinette_get_hotspot('wifi_ssid'));
   $wifi_ssid = moulinette_get('wifi_ssid');
-  if ($wifi_ssid == "notset") {
-    $ssid='';
-  }
+
   foreach ($ssids as $ssid){
     $active = ($ssid == $wifi_ssid) ? 'class="active"' : '';
     $wifi_ssid_list .= "<li $active><a href='#'>$ssid</a></li>\n";