From b98af2cad97146d5d5a1832c5acff161087a310e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 30 Aug 2015 14:18:58 -0700 Subject: [PATCH] CRM_Utils_SQL_Select - Better error for malformed numbers --- CRM/Utils/SQL/Select.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/SQL/Select.php b/CRM/Utils/SQL/Select.php index 89fa4b0e43..322dac6f1a 100644 --- a/CRM/Utils/SQL/Select.php +++ b/CRM/Utils/SQL/Select.php @@ -468,8 +468,8 @@ class CRM_Utils_SQL_Select implements ArrayAccess { $values[$valueKey] = 'NULL'; } elseif (!is_numeric($value)) { - //throw new API_Exception("Failed encoding non-numeric value" . var_export(array($key => $args[$key]), TRUE)); - throw new CRM_Core_Exception("Failed encoding non-numeric value"); + //throw new API_Exception("Failed encoding non-numeric value" . var_export(array($m[0] => $values), TRUE)); + throw new CRM_Core_Exception("Failed encoding non-numeric value (" . $m[0] . ")"); } } return implode(', ', $values); -- 2.25.1