Tidying up

This commit is contained in:
laf
2015-02-26 21:51:28 +00:00
parent e0fbcb9268
commit 15cc00c27d
4 changed files with 11 additions and 26 deletions

View File

@@ -64,7 +64,7 @@ foreach ($device['vlans'] as $domain_id => $vlans)
if ($from_db['port_vlan_id'])
{
dbUpdate($db_a, 'ports_vlans', "`port_vlan_id` = ". $from_db['port_vlan_id']);
dbUpdate($db_a, 'ports_vlans', "`port_vlan_id` = ?", array($from_db['port_vlan_id']));
echo("Updated");
} else {
dbInsert(array_merge($db_w, $db_a), 'ports_vlans');