Index: trunk/extensions/MetavidWiki/includes/MV_Index.php |
— | — | @@ -619,14 +619,16 @@ |
620 | 620 | $propTitle = Title::newFromText( $propKey, SMW_NS_PROPERTY ); |
621 | 621 | $smwProps = $smwStore->getPropertyValues( $rowTitle, $propTitle ); |
622 | 622 | // just a temp hack .. we need to think about this abstraction a bit.. |
623 | | - if($propKey=='speech_by' || $propKey=='spoken_by'){ |
624 | | - $v = current( $smwProps ); |
625 | | - $row->spoken_by = $v->getXSDValue(); |
626 | | - }else if($propKey=='bill'){ |
627 | | - $row->bills=array(); |
628 | | - foreach($smwProps as $v){ |
629 | | - $row->bills[$v->getXSDValue()] = true; |
630 | | - } |
| 623 | + if(count($smwProps)!=0){ |
| 624 | + if($propKey=='speech_by' || $propKey=='spoken_by'){ |
| 625 | + $v = current( $smwProps ); |
| 626 | + $row->spoken_by = $v->getXSDValue(); |
| 627 | + }else if($propKey=='bill'){ |
| 628 | + $row->bills=array(); |
| 629 | + foreach($smwProps as $v){ |
| 630 | + $row->bills[$v->getXSDValue()] = true; |
| 631 | + } |
| 632 | + } |
631 | 633 | } |
632 | 634 | } |
633 | 635 | } |