From 8a76e588f4f437b26f84f1050ae9761fe8b26bcc Mon Sep 17 00:00:00 2001 From: alvaro <alvaro@alia.(none)> Date: Sat, 29 Sep 2012 23:06:36 -0700 Subject: [PATCH] Avoid doing a 500 if query can't be converted to a CONSTRUCT (for exampe, when using aggregation functions) --- classes/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Utils.php b/classes/Utils.php index 2321ea25..5ae31735 100644 --- a/classes/Utils.php +++ b/classes/Utils.php @@ -425,7 +425,7 @@ class Utils{ $query = preg_replace('/select\n?.*\n?where/i', 'CONSTRUCT {'.$construct.'} WHERE', $query); } }else { - HTTPStatus::send500("invalid query: " . var_export($parser->getErrors(), true)."\n\nQUERY:\n".$query); + //HTTPStatus::send500("invalid query: " . var_export($parser->getErrors(), true)."\n\nQUERY:\n".$query); } } if($conf['debug']){ -- GitLab