Skip to content
Snippets Groups Projects
Commit 1ae90b2d authored by Alvaro Graves's avatar Alvaro Graves
Browse files

overlapping variables

parent e56d1196
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ class Endpoint{ ...@@ -11,7 +11,7 @@ class Endpoint{
public function query($q, $output = null){ public function query($q, $output = null){
global $conf; global $conf;
$aux = $this->params['output']; $auxoutput = $this->params['output'];
if($output != null){ if($output != null){
$this->params['output'] = $output; $this->params['output'] = $output;
} }
...@@ -22,7 +22,7 @@ class Endpoint{ ...@@ -22,7 +22,7 @@ class Endpoint{
$url = $this->sparqlUrl.'?'.http_build_query($params, '', '&'); $url = $this->sparqlUrl.'?'.http_build_query($params, '', '&');
$aux = file_get_contents($url, false,$context); $aux = file_get_contents($url, false,$context);
$this->params['output'] = $aux; $this->params['output'] = $auxoutput;
if(preg_match("/select/i", $q)){ if(preg_match("/select/i", $q)){
return json_decode($aux, true); return json_decode($aux, true);
......
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