Skip to content

Commit

Permalink
Update includes/html/functions.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
laf authored Jan 11, 2025
1 parent efb92d9 commit 213c788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/html/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function bill_permitted($bill_id)
function port_permitted($port_id, $device_id = null)
{
if (! is_numeric($device_id)) {
$device_id = Port::where('port_id', $port_id)->value('device_id');
$device_id = Port::find($port_id)->value('device_id');
}

if (device_permitted($device_id)) {
Expand Down

0 comments on commit 213c788

Please sign in to comment.