From 2b10e5dd316a421816dcca73a9cdbc0f5677bc05 Mon Sep 17 00:00:00 2001
From: alvaro <alvaro@graves.cl>
Date: Mon, 10 Jun 2013 22:47:06 -0700
Subject: [PATCH] fixed small bugs when sparql endpoint don't exist.

tested briefly in types
---
 classes/Utils.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/classes/Utils.php b/classes/Utils.php
index 195a402a..64edc8be 100644
--- a/classes/Utils.php
+++ b/classes/Utils.php
@@ -705,10 +705,11 @@ class Utils{
   	  'template_dir' => $viewPath,
   	  'cache_dir' => $conf['home'].'cache/',
   	  ));
-  	$rdf = new stdClass();
-  	if(isset($data['rdf'])){
-  	  $rdf = $data['rdf'];
+	  $rdf = null;
+  	if(array_key_exists('rdf', $data)){
+     	$rdf = $data['rdf'];
   	  unset($data['rdf']);
+  	}else{
   	}
   	$models = $data;
   	Convert::getPaths($models, "");
-- 
GitLab