Skip to content
Snippets Groups Projects
Commit 315288bc authored by alvaro's avatar alvaro
Browse files

finaly fix

parent c374f2a3
No related branches found
No related tags found
No related merge requests found
......@@ -422,7 +422,8 @@ class Utils{
HTTPStatus::send500();
}
}else{
$query = preg_replace('/select\s*.*\s*(where)?\s*{/i', 'CONSTRUCT {'.$construct.'} WHERE{', $query);
echo $query;
$query = preg_replace('/select\s*[^{]*\s*(where)?\s*{/i', 'CONSTRUCT {'.$construct.'} WHERE{', $query);
}
}else {
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment