fix: fixing consistency accross api endpoints (#12795)

This commit is contained in:
Bennet Gallein
2021-04-26 21:30:30 +02:00
committed by GitHub
parent e50590edc3
commit 5576847c26

View File

@@ -969,7 +969,7 @@ function get_port_info(Illuminate\Http\Request $request)
return check_port_permission($port_id, null, function ($port_id) {
// use hostname as device_id if it's all digits
$port = dbFetchRows('SELECT * FROM `ports` WHERE `port_id` = ? AND `deleted` = 0', [$port_id]);
$port = dbFetchRows('SELECT * FROM `ports` WHERE `port_id` = ?', [$port_id]);
return api_success($port, 'port');
});