#90232Database result is not used to built result array for linkvalidator
Description
Within () the following code is uses:
while ($row = $statement->fetch()) {
$result[$row['link_type']] = $result['amount'];
}
This results in an empty list, null assignment.
Instead the following should be used:
while ($row = $statement->fetch()) {
$result[$row['link_type']] = $row['amount'];
}