Bug #1101
closed
Wake-on-Lan display issue
Added by Yehuda Katz almost 14 years ago.
Updated almost 14 years ago.
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'];
?>
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'];
- Target version set to 2.0
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']));
- Status changed from New to Feedback
- % Done changed from 0 to 100
- Status changed from Feedback to Resolved
Also available in: Atom
PDF