Update sip_profiles.php

This commit is contained in:
FusionPBX
2018-07-05 14:25:14 -06:00
committed by GitHub
parent 66baa4f66a
commit fc91d8a357

View File

@@ -93,7 +93,7 @@
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
$sip_profiles = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($sip_profiles as &$row) { $row = array_map("escape", $row); }
foreach ($sip_profiles as $key => $row) { $sip_profiles[$key] = array_map("escape", $row); }
unset ($prep_statement, $sql);
//escape the search