From 69c9fc0bc68c9294582a0aa2f9b264c8be171b43 Mon Sep 17 00:00:00 2001
From: alangrafu <alvaro@graves.cl>
Date: Wed, 5 Oct 2011 13:20:53 -0400
Subject: [PATCH] Hotfix, removing syntax sugar for a while, since it produces
 duplicate results.

---
 classes/Utils.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/classes/Utils.php b/classes/Utils.php
index d673cda7..6289a8b9 100644
--- a/classes/Utils.php
+++ b/classes/Utils.php
@@ -294,18 +294,18 @@ class Utils{
   	  	}
   	  	if(Utils::getResultsType($query) == $conf['endpoint']['select']['output']){
   	  	  $rPointer[$modelFile] = Utils::sparqlResult2Obj($aux);
-  	  	  if(sizeof($rPointer)>0){
+  	  	  /*if(sizeof($rPointer)>0){
   	  	  	$rPointer[$modelFile]['first'] = $rPointer[$modelFile][0];
-  	  	  }
+  	  	  }*/
   	  	}else{
   	  	  $rPointer[$modelFile] = $aux;
   	  	}
   	  }else{
   	  	if(Utils::getResultsType($query) == $conf['endpoint']['select']['output']){
   	  	  $rPointer = Utils::sparqlResult2Obj($aux);
-  	  	  if(sizeof($rPointer)>0){
+  	  	  /*if(sizeof($rPointer)>0){
   	  	  	$rPointer['first'] = $rPointer[0];
-  	  	  }
+  	  	  }*/
   	  	}else{
   	  	  $rPointer = $aux;
   	  	}  	 
-- 
GitLab