From: <sk...@us...> - 2008-01-15 10:21:40
|
Revision: 372 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=372&view=rev Author: sknappe Date: 2008-01-15 02:21:31 -0800 (Tue, 15 Jan 2008) Log Message: ----------- removed bug with empty result Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-01-15 09:29:18 UTC (rev 371) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-01-15 10:21:31 UTC (rev 372) @@ -113,6 +113,7 @@ if (!$this->client->isThreadRunning($this->id,$this->ksID,"triples")) { $object=$this->client->getFromSparql($this->id,$this->ksID,"triples"); + if (count($object)==0) return array(); $array=$object->item; if (count($array)==1) return $array; $ret=array(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |