// And now deal with the value and the operator. Set $q to
// a single-quote for non-numeric values and the
// empty-string for numeric values, then wrap all values in $q.
- $raw_value = $this->db_safe($info['value']);
+ $raw_value = $this->db_safe($info['value'], $info);
$q = (empty($info['numeric']) ? "'" : '');
if (is_array($raw_value)) {
* so something that needs floats in their joins needs to do their
* own type checking.
*/
- function db_safe($input) {
+ function db_safe($input, $info) {
if (is_array($input)) {
$output = array();
foreach ($input as $value) {