Issue Bug Closed

#90232Database result is not used to built result array for linkvalidator

Daniel Siepmann 01/28/20, 15:40 updated 02/27/20, 12:43

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'];
        }

Reviews 1