diff --git a/app/sip_profiles/sip_profiles.php b/app/sip_profiles/sip_profiles.php index 80aa5cdf5a..629f047d79 100644 --- a/app/sip_profiles/sip_profiles.php +++ b/app/sip_profiles/sip_profiles.php @@ -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