Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -895,14 +895,14 @@ |
896 | 896 | } elseif ( $item['type'] == 'article' ) { |
897 | 897 | if ( $item['currentVersion'] == 1 ) { |
898 | 898 | $articleText .= ":[[" . $item['title']; |
899 | | - if ( $item['displaytitle'] ) { |
| 899 | + if ( isset( $item['displaytitle'] ) && $item['displaytitle'] ) { |
900 | 900 | $articleText .= "|" . $item['displaytitle']; |
901 | 901 | } |
902 | 902 | $articleText .= "]]\n"; |
903 | 903 | } else { |
904 | 904 | $articleText .= ":[{{fullurl:" . $item['title']; |
905 | 905 | $articleText .= "|oldid=" . $item['revision'] . "}} "; |
906 | | - if ( $item['displaytitle'] ) { |
| 906 | + if ( isset( $item['displaytitle'] ) && $item['displaytitle'] ) { |
907 | 907 | $articleText .= $item['displaytitle']; |
908 | 908 | } else { |
909 | 909 | $articleText .= $item['title']; |