Bug #1101
closedWake-on-Lan display issue
100%
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'];
?>
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'];
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']));
Updated by Erik Fonnesbeck almost 14 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset f39b73ad06be35f2da4b227e4894f56d412e4175.
Updated by Chris Buechler almost 14 years ago
- Status changed from Feedback to Resolved