Closed ashleyfae closed 4 years ago
$column_names returns an array, where the column name is the key.
$column_names
https://github.com/berlindb/core/blob/master/query.php#L2795
But then the column validation checks in_array(), when it should actually be checking array_key_exists()
in_array()
array_key_exists()
https://github.com/berlindb/core/blob/master/query.php#L2797-L2802
PR: #32
$column_names
returns an array, where the column name is the key.https://github.com/berlindb/core/blob/master/query.php#L2795
But then the column validation checks
in_array()
, when it should actually be checkingarray_key_exists()
https://github.com/berlindb/core/blob/master/query.php#L2797-L2802