From 96afdfb809745b2959c2ff9236c506832c76826c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 2 Jan 2017 20:03:14 -0700 Subject: [PATCH] Update device_vendor_function_edit.php Fix a PHP warning. --- app/devices/device_vendor_function_edit.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/devices/device_vendor_function_edit.php b/app/devices/device_vendor_function_edit.php index 2e99681f5d..5013403dff 100644 --- a/app/devices/device_vendor_function_edit.php +++ b/app/devices/device_vendor_function_edit.php @@ -217,15 +217,13 @@ $sql .= " v_groups as g "; $sql .= "where "; $sql .= " fg.group_uuid = g.group_uuid "; - //$sql .= " and fg.device_vendor_uuid = :device_vendor_uuid "; - $sql .= " and fg.device_vendor_uuid = '$device_vendor_uuid' "; - //$sql .= " and fg.device_vendor_function_uuid = :device_vendor_function_uuid "; - $sql .= " and fg.device_vendor_function_uuid = '$device_vendor_function_uuid' "; + $sql .= " and fg.device_vendor_uuid = :device_vendor_uuid "; + //$sql .= " and fg.device_vendor_uuid = '$device_vendor_uuid' "; + $sql .= " and fg.device_vendor_function_uuid = :device_vendor_function_uuid "; + //$sql .= " and fg.device_vendor_function_uuid = '$device_vendor_function_uuid' "; $sql .= "order by "; $sql .= " g.domain_uuid desc, "; $sql .= " g.group_name asc "; - //echo $sql; - //exit; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->bindParam(':device_vendor_uuid', $device_vendor_uuid); $prep_statement->bindParam(':device_vendor_function_uuid', $device_vendor_function_uuid);