Project

General

Profile

Actions

Bug #1101

closed

Wake-on-Lan display issue

Added by Yehuda Katz about 14 years ago. Updated almost 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
Start date:
12/14/2010
Due date:
% Done:

100%

Estimated time:
0.10 h
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:

Description

Even if you have renamed the LAN interface, the page still shows saved clients on interface LAN.
The fix is easy, remove this 'if'.

services_wol.php (Line 174)
echo "LAN";
else
echo $config['interfaces'][$wolent['interface']]['descr'];
?> 

Actions #1

Updated by Yehuda Katz about 14 years ago

It looks like a lot of my ticket got cut off.

if ($wolent['interface'] == "lan")
echo "LAN";
else
echo $config['interfaces'][$wolent['interface']]['descr'];

It should be just
echo $config['interfaces'][$wolent['interface']]['descr'];

Actions #2

Updated by Chris Buechler about 14 years ago

  • Target version set to 2.0
Actions #3

Updated by Yehuda Katz about 14 years ago

Ok, it is not quite that simple.
(I would not be surprised if there was already be a function that does this.)

if ( !empty( $config['interfaces'][$wolent['interface']]['descr'] ) )
echo $config['interfaces'][$wolent['interface']]['descr'];
else
echo ucase($wolent['interface']));

Actions #4

Updated by Erik Fonnesbeck almost 14 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #5

Updated by Chris Buechler almost 14 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF