Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_NAry.php |
— | — | @@ -371,9 +371,11 @@ |
372 | 372 | $count = 0; |
373 | 373 | foreach ($this->m_values as $value) { |
374 | 374 | $count++; |
375 | | - $type = $value->getTypeID(); |
| 375 | + if ($value === NULL) { |
| 376 | + continue; |
| 377 | + } |
376 | 378 | $element = "nary" . $count . $value->getTypeID(); |
377 | | - // TODO make the elemnet name dependant on the type of the value |
| 379 | + /// TODO make the element name dependent on the type of the value |
378 | 380 | $rdf .= "\t" . $value->exportToRDF( "smw:$element", $exporter ); |
379 | 381 | if ($value->getTypeID() == '_wpg') { |
380 | 382 | $exporter->addSchemaRef( $element, "owl:ObjectProperty" ); |
— | — | @@ -382,7 +384,7 @@ |
383 | 385 | } |
384 | 386 | } |
385 | 387 | $rdf .= "\t\t</$QName>\n"; |
386 | | - return $rdf; |
| 388 | + return $rdf; |
387 | 389 | } |
388 | 390 | |
389 | 391 | } |