Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Subobject.php |
— | — | @@ -41,8 +41,9 @@ |
42 | 42 | foreach ( $params as $param ) { |
43 | 43 | $parts = explode( '=', trim( $param ), 2 ); |
44 | 44 | |
45 | | - // Only add the property when there is both a name and a value. |
46 | | - if ( count( $parts ) == 2 ) { |
| 45 | + // Only add the property when there is both a name |
| 46 | + // and a non-empty value. |
| 47 | + if ( count( $parts ) == 2 && $parts[1] != '' ) { |
47 | 48 | self::addPropertyValueToSemanticData( $parts[0], $parts[1], $semanticData ); |
48 | 49 | } else { |
49 | 50 | //self::$m_errors[] = wfMsgForContent( 'smw_noinvannot' ); |