Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Description.php |
— | — | @@ -516,7 +516,8 @@ |
517 | 517 | $log = array_merge( $log, $prunelog ); |
518 | 518 | $maxdepth = $newdepth; |
519 | 519 | if ( count( $result->getDescriptions() ) == 1 ) { // simplify unary conjunctions! |
520 | | - $result = array_shift( $result->getDescriptions() ); |
| 520 | + $descriptions = $result->getDescriptions(); |
| 521 | + $result = array_shift( $descriptions ); |
521 | 522 | } |
522 | 523 | $result->setPrintRequests( $this->getPrintRequests() ); |
523 | 524 | return $result; |
— | — | @@ -664,7 +665,8 @@ |
665 | 666 | $log = array_merge( $log, $prunelog ); |
666 | 667 | $maxdepth = $newdepth; |
667 | 668 | if ( count( $result->getDescriptions() ) == 1 ) { // simplify unary disjunctions! |
668 | | - $result = array_shift( $result->getDescriptions() ); |
| 669 | + $descriptions = $result->getDescriptions(); |
| 670 | + $result = array_shift( $descriptions ); |
669 | 671 | } |
670 | 672 | $result->setPrintRequests( $this->getPrintRequests() ); |
671 | 673 | return $result; |
— | — | @@ -748,5 +750,4 @@ |
749 | 751 | $result->setPrintRequests( $this->getPrintRequests() ); |
750 | 752 | return $result; |
751 | 753 | } |
752 | | -} |
753 | | - |
| 754 | +} |
\ No newline at end of file |