Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Record.php |
— | — | @@ -187,7 +187,8 @@ |
188 | 188 | $propname = $prop->getPropertyID(); |
189 | 189 | $propnum = substr( $propname, 1 ); |
190 | 190 | if ( ( $propname != false ) && ( is_numeric( $propnum ) ) ) { |
191 | | - $result[( $propnum - 1 )] = reset( $this->m_data->getPropertyValues( $prop ) ); |
| 191 | + $propertyvalues = $this->m_data->getPropertyValues( $prop ); // combining this with next line violates PHP strict standards |
| 192 | + $result[( $propnum - 1 )] = reset( $propertyvalues ); |
192 | 193 | } |
193 | 194 | } |
194 | 195 | return $result; |
— | — | @@ -228,7 +229,8 @@ |
229 | 230 | $result .= ( $type == 4 ) ? '; ':", "; |
230 | 231 | } |
231 | 232 | $property = SMWPropertyValue::makeProperty( '_' . ( $i + 1 ) ); |
232 | | - $dv = reset( $this->m_data->getPropertyValues( $property ) ); |
| 233 | + $propertyvalues = $this->m_data->getPropertyValues( $property ); // combining this with next line violates PHP strict standards |
| 234 | + $dv = reset( $propertyvalues ); |
233 | 235 | $result .= ( $dv !== false ) ? $this->makeValueOutputText( $type, $dv, $linker ): '?'; |
234 | 236 | } |
235 | 237 | if ( ( $i > 1 ) && ( $type != 4 ) ) $result .= ')'; |