Skip to content

Commit

Permalink
hidden devices should not be displayed on this page
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Apr 3, 2024
1 parent 1018775 commit 2511447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/user/about_cat.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
$out .= "</tr>";
foreach (\devices\Devices::listDevices() as $index => $onedevice) {
if (isset($onedevice['options'])) {
if ((isset($onedevice['options']['hidden']) && ($onedevice['options']['hidden'] == 1)) || (isset($onedevice['options']['redirect']) && ($onedevice['options']['redirect'] == 1))) {
if ((isset($onedevice['options']['hidden']) && ( $onedevice['options']['hidden'] == 1 || $onedevice['options']['hidden'] == 2 ))|| (isset($onedevice['options']['redirect']) && ($onedevice['options']['redirect'] == 1))) {
continue;
}
}
Expand Down

0 comments on commit 2511447

Please sign in to comment.